HSTS Preloadのすべてのテストに合格したいと思います。HSTS Preload Submission
まず:
`http://example.com` (HTTP) should immediately redirect to
`https://example.com` (HTTPS) before adding the www subdomain.
Right now, the first redirect is to `https://www.example.com/`.
私のhtaccessファイルは、次のようになります。
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/ [R=302,L]
セカンドを:
は、私は現在、私は解決する必要があること、2個のエラーを持っている
Response error: No HSTS header is present on the response.
私のhtaccessファイルは、次のようになります。
<ifModule mod_headers.c>
Header add Strict-Transport-Security "max-age=84600; includeSubDomains"
</IfModule>
は、私が何をしないのですし、どのように私は試験に合格することができますか?
私はこのテストサイトを使用します。 https://hstspreload.appspot.com/
サイトはヘッダはまた、apacheの中であなたのリダイレクトを設定する方法を見上げる – PeeHaa
...どのように見えるかについての情報が含まれています。それは少なくともここで1000回答えられている。 – PeeHaa