mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-07-25 17:52:26 -04:00
Auto https fixup
This commit is contained in:
parent
fcd1b87d7f
commit
6261dcfc9e
@ -8,10 +8,10 @@ ErrorDocument 404 /404.php
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
|
#DELETE THIS IF YOU DON'T HAVE HTTPS!
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{HTTPS} !=on
|
RewriteCond %{HTTPS} off
|
||||||
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||||
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user