Fix #42 - htaccess now looks at X-Forwarded-Proto

This commit is contained in:
Vojtěch Sajdl 2018-07-11 17:41:04 +02:00
parent 77337a1078
commit ac8fcc5131
No known key found for this signature in database
GPG Key ID: 5D4EB1361A272390

View File

@ -10,6 +10,7 @@ ErrorDocument 404 /404.php
<IfModule mod_rewrite.c>
#DELETE THIS IF YOU DON'T HAVE HTTPS!
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>