Cómo redirigir un sitio a sin www

septiembre 12th, 2013 Posted by apache, htaccess 0 thoughts on “Cómo redirigir un sitio a sin www”

Se puede hacer editando el .htaccess del sitio y metiendo la siguiente regla:


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

Copyright © 2018 programadorfreelanceargentina.com

Programador Freelance Argentina