Enforce HTTPS in .htaccess
This commit is contained in:
+6
-1
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user