Your server has to send a "Strict-Transport-Security" header with includesubdomains and preload directives included and redirecting all http traffic to https i do that but www.hstspreload.org says
error http does not redirect to https (that's a lie it does)
error no HSTS header (another lie that header is send)
so to redirect http to https i have this
and the header
just curious why it is not working.
error http does not redirect to https (that's a lie it does)
error no HSTS header (another lie that header is send)
so to redirect http to https i have this
Code:
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Code:
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains;preload"
Attachments
-
48.3 KB Views: 3
Last edited: