Created
July 7, 2017 20:33
-
-
Save rederlo/6bf57b07b0b257b7cb516ca41eafe6d9 to your computer and use it in GitHub Desktop.
AWS redirect http to 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
# the final correct redirect | |
RewriteEngine on | |
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$ | |
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment