Hi
I am trying to alter an .htaccess file for a script to run on my server.
My .htaccess is as follows, for domain
www.my-domain-name.co.uk
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^my-domain-name.co.uk [NC]
RewriteRule ^(.*)$ http://www.my-domain-name.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.my-domain-name.co.uk [NC]
RewriteRule ^(.*)$ http://www.my-domain-name.co.uk/$1 [R=301,L]
However, when I try to view the site in firefox, I get an error about the page not redirecting properly, so there must be an issue with the above htaccess rules - can anyone spot the problem?
Thanks for your help!