I\'m trying to force www for my site address with .htaccess:
www
.htaccess
RewriteCond %{HTTP_HOST} ^mysite\\.com$ [NC] RewriteRule ^(.*)$ http:/
From the superb HTML5 Boilerplate .htaccess:
RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} !^www\..+$ [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]