1
0
Fork 0

Enforce HTTPS in .htaccess

master
Lukas Bestle 5 years ago
parent dc289877f1
commit 05778a3cae

@ -21,7 +21,12 @@ RewriteEngine on
#
RewriteBase /
# Rewrite OpenID clients to YADIS file
# enforce HTTPS
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# rewrite OpenID clients to YADIS file
RewriteCond %{HTTP_ACCEPT} ^application/xrds\+xml [NC]
RewriteRule ^$ /yadis.xml [PT]

Loading…
Cancel
Save