Created
September 7, 2012 20:46
-
-
Save atuttle/3669469 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
# force **NO** SSL for non-login, non-registration pages | |
RewriteCond %{HTTPS} on | |
RewriteCond %{HTTP_HOST} !^admin\.company\.com$ | |
RewriteCond %{URL} !^/register.cfm$ | |
RewriteCond %{URL} !^/login.cfm$ | |
RewriteRule ^(.*)?$ http://%{HTTP_HOST}/$1 [R=301,L] | |
# force SSL for login & registration pages | |
RewriteCond %{HTTPS} off | |
RewriteRule ^login.cfm(.*)$ https://%{HTTP_HOST}/login.cfm$1 [R=301,L] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^register.cfm(.*)$ https://%{HTTP_HOST}/register.cfm$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment