Htaccess force non-www

By.

min read

Share

[code:1:9fcdd920c8]RewriteEngine on

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

Leave a Reply

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