News Update :
Home » » Tip: Remove www from the URLs modifying the .htaccess

Tip: Remove www from the URLs modifying the .htaccess

By: Unknown on Saturday, 7 March 2015 | 06:06

Hello again I share a great tip that many insurance webmaster liked.

For reasons of SEO, you can always remove (or use) the www from URL. In e l following code fragment will remove the www in the URL of the website and to redirect any url with www to non-www version.







With www.

RewriteEngine On
RewriteCond% {HTTP_HOST} ^ tu-sitio.com [NC]
RewriteRule ^ (. *) $ http://www.tu-sitio.com/$1 [L, R = 301]


Without www.

RewriteEngine On
RewriteCond% {HTTP_HOST}! ^ tu-sitio.com $ [NC]
RewriteRule ^ (. *) $ http://tu-sitio.com/$1 [L, R = 301]

Post a Comment

 
Contact Us | Privacy policy | Term of use | Advertise with Us | Site map
Copyright © 2011. Blogging Brain . All Rights Reserved.
Design Template by Blogging Brain | | Powered by Blogger