Created
March 7, 2012 15:15
-
-
Save halles/1993733 to your computer and use it in GitHub Desktop.
Add www at the beginning of a domain using .htaccess
This file contains 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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} !^www.halles\.cl$ [NC] | |
RewriteRule ^(.*)$ http://www.halles.cl/ [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment