Created
December 12, 2011 18:34
-
-
Save pwenzel/1468482 to your computer and use it in GitHub Desktop.
Conditional SSL Rewrite for Certain Directory Paths
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
RewriteEngine on | |
RewriteCond %{SERVER_PORT} ^443$ | |
RewriteCond %{REQUEST_URI} !^/facebook_app | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] | |
# This lets traffic that isn’t on port 443 (ssl) and isn't at /facebook_app/* | |
# and redirects it to the same path, but with SSL. This essentially lets stuff in | |
# /facbeook_app/* slide through over ssl or non-ssl, but nothing else. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment