Apache: Rewrite to www
# Be aware that the following might not be a good idea if you use “real”
# subdomains for certain parts of your website.<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>