Last active
December 21, 2015 08:28
-
-
Save andrewspear/6278337 to your computer and use it in GitHub Desktop.
Force specific sub-domains of a site to use SSL
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
# Force SSL for specific subdomains | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP_HOST} ^(secure|login)\. [NC] | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment