waynede, on 27 September 2011 - 07:55 AM, said:
Hey all,
I am trying to get waynedeboer.co.uk to redirect to www.waynedeboer.co.uk
Here is the code I am using in my htaccess file:
OnRewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^waynedeboer.co.uk
RewriteRule (.*) http://www.waynedeboer.co.uk/$1 [R=301,L]
Any help is appreciated.
Hello there waynede,
If you are using htaccess file to do it i would go with ( just a small change from yours ):
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Hope this helps
Sam
This post has been edited by SamFowlerWeb: 27 September 2011 - 09:15 AM