1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-09-15 04:35:34 -04:00

https proxy fix

This commit is contained in:
2017-07-16 17:34:27 -04:00
parent eecf8185a9
commit e67d12e290

View File

@@ -6,9 +6,15 @@ ErrorDocument 404 /error.html
RewriteEngine on
# If we receive a forwarded http request from a proxy...
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
# ...or just a plain old http request directly from the client
RewriteCond %{HTTP:X-Forwarded-Proto} =""
RewriteCond %{HTTPS} !=on
# Redirect to https version
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# other rewrite rules
RewriteRule ^login/?$ login.php [L]
RewriteRule ^logout/?$ logout.php [L]
RewriteRule ^sms/?$ sms.php [L]