Last active
September 17, 2017 08:45
-
-
Save luclu7/ecebfa53ba52ba4d8d92e212f70ef21e to your computer and use it in GitHub Desktop.
Force https (put this file to the root of your web server or in a specific folder)
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 %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} | |
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS | |
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment