Domain re write

Discussion in 'Apache' started by Jim bob 9 pants, Dec 20, 2006.

  1. #1
    Hi

    I have been using the following to re write my .co.uk to the .com

    RewriteCond %{HTTP_HOST} ^abcde\.com$ [NC]
    RewriteRule ^(.*)$ http://www.abcde.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^abcde\.co.uk$ [NC]
    RewriteRule ^(.*)$ http://www.abcde.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^www.abcde\.co.uk$ [NC]
    RewriteRule ^(.*)$ http://www.abcde.com/$1 [R=301,L]

    but it has stopped working - any ideas why and if so how do I fix it

    Jamie
     
    Jim bob 9 pants, Dec 20, 2006 IP