mirror of
https://github.com/phanan/htaccess.git
synced 2018-11-08 13:39:40 +01:00
Update README.md
This commit is contained in:
parent
30816ce7cb
commit
f8d086ba21
1 changed files with 2 additions and 3 deletions
|
@ -100,9 +100,8 @@ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
|||
# on your HTTPS website to help prevent man-in-the-middle attacks.
|
||||
# See https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=31536000;"
|
||||
# Or, if you want to force HSTS on the sudbmains as well
|
||||
# Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
# Remove "includeSubDomains" if you don't want to enforce HSTS on all subdomains
|
||||
Header always set Strict-Transport-Security "max-age=31536000;includeSubDomains"
|
||||
</IfModule>
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue