5,332
edits
Line 19: | Line 19: | ||
RewriteEngine on | RewriteEngine on | ||
RewriteCond %{ | RewriteCond %{HTTPS} !=on | ||
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L] | |||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
</VirtualHost> | </VirtualHost> |