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]
Subscribe to:
Post Comments (Atom)
Post a Comment