Created
January 4, 2013 01:13
-
-
Save steveosoule/4449096 to your computer and use it in GitHub Desktop.
Force WWW On All Pages
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 ON ALL PAGES | |
| RewriteCond %{HTTP_HOST} !^www\.(.+) | |
| RewriteCond %{HTTPS}s ^(on(s)|offs) | |
| RewriteRule ^ http%2://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment