HSTS header creates a ERR_TOO_MANY_REDIRECTS error
I've added this HSTS header to the domain example.me:
(my .htaccess file contains nothing more) But when I try to go to example.me in Chrome I get this error message: ERR_TOO_MANY_REDIRECTS In the Apache error log I get this: Too many arguments to directive I've searched for the correct way of adding a HSTS header if I want to be able to use preload (hstspreload.appspot.com/) and from what I can find my HSTS header is correct. Anyone know what the problem is?
Header always set Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
(my .htaccess file contains nothing more) But when I try to go to example.me in Chrome I get this error message: ERR_TOO_MANY_REDIRECTS In the Apache error log I get this: Too many arguments to directive I've searched for the correct way of adding a HSTS header if I want to be able to use preload (hstspreload.appspot.com/) and from what I can find my HSTS header is correct. Anyone know what the problem is?
-
Hello :) Are there any additional .htaccess files in the account's home directory (above the public_html directory) that could contain additional redirects? Thank you. 0 -
I found the problem, this is how it should look: Header always set Strict-Transport-Security: "max-age=31536000; includeSubdomains; preload" 0 -
I am happy to see you were able to address the issue. Thank you for updating us with the outcome. 0 -
Where do you sett that settings ? 0 -
In the htaccess file of the site in question. 0
Please sign in to leave a comment.
Comments
5 comments