2
0
Fork 0
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:
Phan An 2017-12-09 03:31:35 +01:00 committed by GitHub
parent 30816ce7cb
commit f8d086ba21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,9 +100,8 @@ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
# on your HTTPS website to help prevent man-in-the-middle attacks. # 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 # See https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security
<IfModule mod_headers.c> <IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000;" # Remove "includeSubDomains" if you don't want to enforce HSTS on all subdomains
# Or, if you want to force HSTS on the sudbmains as well Header always set Strict-Transport-Security "max-age=31536000;includeSubDomains"
# Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</IfModule> </IfModule>
``` ```