Forum Moderators: coopster & phranque

Message Too Old, No Replies

Redirecting Domain

         

abertone

4:45 pm on Aug 6, 2004 (gmt 0)

10+ Year Member



I have 2 duplicate sites that came about during a server move. I am now ready to shut down the old site and have been doing some research on the best way to do this.

The two sites are on the same server and I have complete access to my server to make whatever changes are necessary.

I found this suggested on another post, but I am not sure where to add it?

rewriteEngine on
rewriteBase /
rewriteCond %{HTTP_HOST} olddomain.com$ # only required if on same webspace & dir
rewriteRule ^(.+) [newdomain.co.uk...] [L,R=301]

I am sure there are probably other info I need about my server, but I don't know what to provide. Help! Please :)

-Andrea

abertone

8:27 pm on Aug 6, 2004 (gmt 0)

10+ Year Member



I added this to the virtual host in the httpd.conf

RedirectPermanent / [xyz.com...]
RedirectPermanent /Merchant2 [xyz.com...]
RedirectPermanent /thestore [xyz.com...]
RedirectPermanent /Emails [xyz.com...]

Works great unless you enter xyz.com instead of www.xyz.com. Whem redirecting xyz.com it isn't picking up the external js or css and not loading the images? Any ideas?

Thanks,

Andrea