mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-29 04:22:25 -04:00
Fix #42 - htaccess now looks at X-Forwarded-Proto
This commit is contained in:
parent
77337a1078
commit
ac8fcc5131
@ -10,6 +10,7 @@ ErrorDocument 404 /404.php
|
|||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
#DELETE THIS IF YOU DON'T HAVE HTTPS!
|
#DELETE THIS IF YOU DON'T HAVE HTTPS!
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
||||||
RewriteCond %{HTTPS} off
|
RewriteCond %{HTTPS} off
|
||||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user