Hi
I need to do a 301 from each URL on our site, to a new site, that has the same structure and DB. So ALL URLS will be the same, except the domain name.
How do I do that in htaccess?
HTACCESS redirect each page to new URL of same page
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
HTACCESS redirect each page to new URL of same page
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: HTACCESS redirect each page to new URL of same page
[text]RewriteEngine On
RewriteRule ^(.*)$ http://new.domain.com/$1 [R=301,L][/text]
RewriteRule ^(.*)$ http://new.domain.com/$1 [R=301,L][/text]