View Single Post
Old 07-04-2004, 06:52 AM   #5 (permalink)
trevHCS
Contributing Member
 
Join Date: 10-14-03
Location: Top left of England, UK
Posts: 243
iTrader: 0 / 0%
Latest Blog:
None

trevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebody
Send a message via MSN to 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: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
trevHCS is offline   Reply With Quote