Htaccess force non-www

By.

min read

My profile

Share this:

[code:1:9fcdd920c8]RewriteEngine on

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

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *