Quote:
|
Originally Posted by trevHCS
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:ad4253fc90]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301][/code:1:ad4253fc90]
[code:1:ad4253fc90]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301][/code:1:ad4253fc90]
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
|
Is mod_rewrite available on V7 hosting? (Is it already on there)?