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