Created
February 25, 2020 11:09
-
-
Save mustardBees/2d4ca685d2e4c38a3a77c976a6c7100c to your computer and use it in GitHub Desktop.
Force HTTPS
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
# BEGIN Force HTTPS | |
RewriteCond %{HTTP:X-Forwarded-Proto} !=https | |
RewriteCond %{HTTPS} !=on | |
RewriteCond %{REQUEST_METHOD} !=POST | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
# END Force HTTPS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment