|
If you've got mod_rewrite enabled on the server then you could do either of the following.
The first one will redirect to the same page, eg:
olddomain.com/mypage.htm -> newdomain.com/mypage.htm
The second one should just send everything to the front page.
[code:1:19eb1c3c4b]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301][/code:1:19eb1c3c4b]
[code:1:19eb1c3c4b]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301][/code:1:19eb1c3c4b]
If that doesn't work I'm not sure if there is a way to use redirect 301 except by doing it for every page, but then again I'm no apache expert.
Trev
|