Redirect non-WWW to WWW Apr 12, 2014 To redirect WWW to non-WWW simply put the following in your .htaccess file: RewriteEngine On RewriteCond %{HTTPHOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTPHOST}/$1 [R=301,L]