위해 내 사이트의 .htaccess에 다음을 삽입 한은 HSTS preload list에 입학하기 :HTTP로 HSTS 헤더를 비활성화하는 방법은 무엇입니까?
<ifModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
</ifModule>
문제는 내가 내 사이트를 제출할 때, 내가 얻을 수 있다는 것입니다 :
Warning: Unnecessary HSTS header over HTTP. The HTTP page at http: //fabriziorocca.it sends an HSTS header. This has no effect over HTTP, and should be removed.
순간 나는 http를 https로 전환하기 위해 htaccess로에 다음을 사용 :
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
가 어떻게이 문제를 해결할 수
?미리 감사드립니다.
가능한 복제 [HTTPS 만에 htaccess로에서 HSTS 헤더를 설정하는 방법 (http://stackoverflow.com/questions/24144552/how-to -set-hsts-header-from-htaccess-on-on-https) – Tom