Forum Moderators: phranque

Message Too Old, No Replies

Redirect without changing domain

         

davidbra

7:01 am on Oct 13, 2006 (gmt 0)

10+ Year Member



I have set up a site on www.mydomain.com/myotherdomain. I have redirected www.myotherdomain.com to this location, and my question is how I can make the www.myotherdomain.com stand after the redirect. I own both domains of course..

Is domain masking the solution here? Or some mod_rewrite-stuff? Hidden frame is not an opportunity.

encyclo

1:01 pm on Oct 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld davidbra. If you have access to the server configuration (httpd.conf) then you should set up a new virtual host for the domain. If not, then you can try using mod_rewrite via .htaccess to check for the HTTP host header and display the contents of the correct directory.

Check out the Apache forum library [webmasterworld.com] for some good examples to get you started.