Skip to content

Instantly share code, notes, and snippets.

@deeman
Last active March 18, 2019 10:34
Show Gist options
  • Select an option

  • Save deeman/768bc95ad2b88c075a3b7232ccf2b3e3 to your computer and use it in GitHub Desktop.

Select an option

Save deeman/768bc95ad2b88c075a3b7232ccf2b3e3 to your computer and use it in GitHub Desktop.
[WordPress][Security] Enable HSTS - HTTP Strict Transport Security in .htaccess
<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