Options -Indexes
ErrorDocument 403 https://%{HTTP_HOST}
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Options -Indexes
ErrorDocument 403 https://%{HTTP_HOST}
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]