Created
August 5, 2014 20:14
-
-
Save LaboratorioEfe5/d4ac63683fdf0fd19e8b to your computer and use it in GitHub Desktop.
redirigir por htaccess con y sin www
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Force non-www: | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] | |
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Force www: | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^example.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment