you are here: codestackercodes [RSS]redirects "www.site.com" to "site.com" with .htaccess

redirects "www.site.com" to "site.com" with .htaccess

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

Comments