htaccess: force non www site to a www

RewriteEngine On 

RewriteCond %{HTTP_HOST} !^www\.YOURDOMAIN\.COM$ [NC] 

RewriteRule ^(.*)$ http://www.YOURDOMAIN.COM/$1 [R=301,L]


Name: Forrest Age: 42 Location: Washington State enjoys computers, programming, web design and development. I really enjoy working with 3d models. Was recently diagnosed with narcolepsy with cataplexy. It all the sudden appeared in 2011. My life has not been the same.

Leave a Reply

Skip to toolbar