Created
February 3, 2015 14:37
-
-
Save betawax/464028a57a899a49cada to your computer and use it in GitHub Desktop.
Redirect non SSL requests via mod_rewrite
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
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment