How can you configure a web server to "mirror" one domain name to another. For example, if my primary web site is www.magic1.com but also want a domain name www.best.com, how can you mirror the domain so both with go to the same website. ?
How can you configure a web server to "mirror" one domain name to another. For example, if my primary web site is www.magic1.com but also want a domain name www.best.com, how can you mirror the domain so both with go to the same website. ?
____________________________
Beers on the house where are those ladders !!
____________________________
you would direct best.com at either magic1.com or the ip address of your web server.
Would the redirection work though for specific pages? Ie, if he had www.mysite.com/blah/mypage.html
would going to www.yoursite.com/blah/mypage.html
open the page or give a 404? Just a thought that rather than redirection, you may want to use the IP forwarding route as above.
setup a redirect as marco says or just add a vhost and point it straight to it, assuming you are using apache.
Find more about 'mirroring': http://www.apache.org/dev/mirror-guide-bodewig.html
you can either use some code as below to point address B back to address A (will also mask address bar)
or, ideally, set the second domain up on the same name servers and a line in httpd.conf/IIS as per the above posts!!Code:<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>dimebar.com</title> <noscript> <meta http-equiv="refresh" content="0;URL=**ADDRESSA**"> </noscript> </head> <frameset rows="100%,*" cols="100%,*" frameborder="0" border="0" framespacing="0" border="0"> <frame src="**ADDRESSA**" name="forwarder" frameborder="no" noresize scrolling="auto"> </frameset> <noframes> <body onload="window.location='**ADDRESSA**';"></body> </noframes> </html>
The best way would be to park the domain.
Its really easy with most hosting panels.
Tell me what hosting panel your putting and i'll give you the full way to do it.
I'd avoid redirects as they can hurt your search engine placements.
Why dont you just use the facilities provided by the domain host, all have redirection facilities for users.
Social Networking Bookmarks