redirect domain.com to www.domain.com with htaccess
snippet in htaccess

redirect domain.com to www.domain.com with htaccess

user8078

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