Force “www.” via .htaccess
snippet in htaccess

Force “www.” via .htaccess

user4582

RewriteCond %{HTTP_HOST} =name.domain [NC]
RewriteRule ^(.*)$ http://www.name.domain/$1 [R=301,L]