|
This might be a slightly different issue than the normal www 301 redirect would solve - but I've copied in the code I use below anyway.
In your case the non www version isn't resolving to your server, so the browser is never going to get to the htaccess file to prompt the redirect. The 301 redirect will only work where the non www version is already working, but you'd prefer all pages to start with www
Possibly server/host related. Setups can be very different, but in general there needs to be DNS settings for both www and non www
Did you configure these? or your host? they may be the best people to try next.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.co.uk/$1 [R=301,L]
Rich
|