Forum Moderators: phranque

Message Too Old, No Replies

301 redirect w/ mod_rewrite show old URL in address bar

         

georgiek50

11:29 pm on Jun 14, 2006 (gmt 0)

10+ Year Member



Can anyone help me out with this one? I want to redirect myoldsite.com to mynewsite.com using .htaccess and mod_rewrite but would like to keep myoldsite.com in the address bar. Haven't been able to figure this one out yet. Any help would be greatly appreciated.

jdMorgan

3:32 am on Jun 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only way to do this is to set up the old server as a proxy for the new server.

See Apache mod_proxy [httpd.apache.org].

Be aware that you will need to take steps to avoid duplicate-content problems on the two domains.

Jim