- Joined
- Nov 11, 2005
- Posts
- 2,257
- Reaction score
- 519
Really puzzled by this.
I've added this code to my .htaccess file:
# Always use www in the domain
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z.]+)?domainname\.co.uk$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .? http://www.domainname.co.uk%{REQUEST_URI} [R=301,L]
But it doesn't seem to work.
Any ideas what I'm doing wrong?
I've added this code to my .htaccess file:
# Always use www in the domain
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z.]+)?domainname\.co.uk$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .? http://www.domainname.co.uk%{REQUEST_URI} [R=301,L]
But it doesn't seem to work.
Any ideas what I'm doing wrong?