diff --git a/.htaccess b/.htaccess index 43d71ec..0682fc8 100644 --- a/.htaccess +++ b/.htaccess @@ -9,6 +9,12 @@ RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] +# HTTPS for authentication pages +SSLOptions +StrictRequire +SSLRequireSSL +SSLRequire %{HTTP_HOST} eq "%{HTTP_HOST}%{REQUEST_URI}" +ErrorDocument 403 https://%{HTTP_HOST}%{REQUEST_URI} + # Hackerbots Prevention RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]