Created
June 3, 2012 13:24
-
-
Save ixzy24/2863469 to your computer and use it in GitHub Desktop.
Force www on .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
# force www in url | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] | |
# END force www in url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment