Created
January 16, 2012 11:55
-
-
Save jonas8/1620530 to your computer and use it in GitHub Desktop.
Force www in url
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 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