Created
June 2, 2009 23:30
-
-
Save jpf/122678 to your computer and use it in GitHub Desktop.
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
| # How to redirect HTTP to HTTP and HTTPS to HTTPS | |
| RewriteEngine On | |
| RewriteCond %{SERVER_PORT} 80 | |
| RewriteRule ^(.*)$ http://www.DOMAIN.com/$1 [R=302,L] | |
| RewriteCond %{SERVER_PORT} 443 | |
| RewriteRule ^(.*)$ https://www.DOMAIN.com/$1 [R=302,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment