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:
parent
0caec9ddce
commit
95f4197b80
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]
|
|||
``` apacheconf
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTPS} !on
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
|
||||
# Note: It’s also recommended to enable HTTP Strict Transport Security (HSTS)
|
||||
# on your HTTPS website to help prevent man-in-the-middle attacks.
|
||||
|
|
Loading…
Reference in a new issue