Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mirroring a site

    Hi, I was wondering if I could mirror a site...or I don't know what the term for it is so i will explain. I was seeing if there is a code out there to have a site for example (www.example.freehosting.com) when you visit the site so it will show up in the address bar as something more like (www.whatever.com)

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,927
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    At first you have to be the owner of http://example.com to make it show up in the address bar (and show your website content at the same time), i.e. you need to buy that domain. Then what you want has been done with a frame(set) redirect in the past. However, this method isn’t recommended as it isn’t very accessible. The URL effect that you want is exactly one of the problems arising with this method because you’re detaining the actual URL and users can’t directly access any page since they only see the domain in the address bar.

    I’d say if you want http://example.com to show up then get a decent web space/hosting plan. They are really cheap nowadays. And if you’re not willing to get decent hosting but wanna have everything for free then also get used to having a free domain name with all the drawbacks of it.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello thecoofunka,
    If you already have hosting then you probably have a domain that resolves there.
    Say your website is http://myweb.com
    Now you go and buy a new domain, mysecondweb.com.

    You can access mysecondweb.com a couple different ways

    Or you could go get another host for your second domain.

    I have never seen the Frame redirect that VIP is talking about.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #5
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I mean I know I have seen it done before. When you go to a URL say www,,mydomain,,com it's the same webpage but the URL shows as www,,example,,com

  • #6
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    How about just using a frame? Most domain registrars provide this kind of URL forwarding, so that hosting isn't necessary. If you have hosting, you can use the following code.

    Code:
    <html>
    <head>
    <title>Your title</title>
    </head>
    <frameset framespacing="0" border="false" frameborder="0" cols="*">
    <frame name="frame_main" src="http://www.example.freehosting.com" scrolling="auto">
    <noframes>
    <h3>Welcome to www.whatever.com.</h3>
    <p>Click <a href="http://www.example.freehosting.com">here</a> to proceed</p>
    </noframes>
    </html>
    Bear in mind that with URL forwarding (see code above), the search engines won't pick up your whatever.com domain, but the example.freehosting.com. That's a huge disadvantage if you want to look professional to your visitors.

    Cheers,
    spietreser

  • #7
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    I'm sure it would be possible with variable PHP includes and some modifications to .htaccess.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •