Auto Remove www from url using htacccess

To remove www from your url and make it SEO friendly  you need to add the following code to .htaccess file in your root.

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

Get More updates on your Email:

Related Articles

This entry was posted in htaccess, SEO. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.