View Single Post
Old 07-07-2004, 06:01 AM   #9 (permalink)
younghistorians
Inactive
 
younghistorians's Avatar
 
Join Date: 10-13-03
Location: USA
Posts: 1,340
iTrader: 0 / 0%
Latest Blog:
None

younghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really nice
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)?
younghistorians is offline   Reply With Quote