Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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
Inside <VirtualHost...> | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L] | |
Comment out other RewriteCond based off forwarded protocol |