Last active
March 18, 2019 10:34
-
-
Save deeman/768bc95ad2b88c075a3b7232ccf2b3e3 to your computer and use it in GitHub Desktop.
[WordPress][Security] Enable HSTS - HTTP Strict Transport Security in .htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_headers.c> | |
| Header set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" | |
| </IfModule> | |
| #Alternative | |
| <IfModule mod_headers.c> | |
| Header set Strict-Transport-Security "max-age=31536000" env=HTTPS | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment