Category Archives: Hosting Tips

add/delete: www. prefix

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