Just paste the below code in your .htaccess file to redirect www to non-www URL
make sure that mod_rewrite module is enable in your server.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
No comments:
Post a Comment