Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://www.example.co.uk/$1 [L,R=301]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.co.uk/$1 [L,R=301]
Is this right?
I tried puting this:
RewriteEngine On
RewriteRule ^(.*)$ http://www.newsite.co.uk/$1 [R=301,L]
But it just comes up with 'this page is not redirecting properly'
[edited by: encyclo at 12:38 pm (utc) on July 25, 2006]
[edit reason]
[1][edit reason] examplified [/edit] [/edit][/1]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com [NC]
RewriteRule (.*) http://www.example.co.uk/$1 [L,R=301]
I tried puting this:RewriteEngine On
RewriteRule ^(.*)$ http://www.newsite.co.uk/$1 [R=301,L]But it just comes up with 'this page is not redirecting properly'
Jim