2
0
Fork 0
mirror of https://github.com/phanan/htaccess.git synced 2018-11-08 13:39:40 +01:00

Added missing redirect type part to force https

This commit is contained in:
tim neutkens 2016-04-06 08:58:09 +02:00
parent 0caec9ddce
commit 95f4197b80

View file

@ -92,7 +92,7 @@ RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]
``` apacheconf ``` apacheconf
RewriteEngine on RewriteEngine on
RewriteCond %{HTTPS} !on RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Note: Its also recommended to enable HTTP Strict Transport Security (HSTS) # Note: Its also recommended to enable HTTP Strict Transport Security (HSTS)
# on your HTTPS website to help prevent man-in-the-middle attacks. # on your HTTPS website to help prevent man-in-the-middle attacks.