Redirect from www to non www using apache htaccess

Redirect from www. to non www


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

Leave a Reply

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