add hsts domain 1

add hsts domain

Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS

Here is what the above code is Doing:
1. If the request is not HTTPS, redirect to HTTPS
2. If the request is HTTPS, set the Strict-Transport-Security header

Similar Posts