Created
January 20, 2016 19:17
-
-
Save rfmeier/ac213e4d9b14658fd5ef to your computer and use it in GitHub Desktop.
Force https in .htaccess
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 https | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# end force https |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment