The site does not send HSTS

Short answer

The page's HTTPS response has no Strict-Transport-Security header. With it, a browser that has visited once uses HTTPS for the domain until the header expires, even when someone types or clicks an http:// address. Send it from the server or CDN with every HTTPS response.

seo.hsts_missing · Priority: P3

What it means

The Strict-Transport-Security header tells browsers to use HTTPS for every later visit, so nobody can be downgraded to HTTP.

Why it matters for AI search

A redirect from HTTP to HTTPS still starts with one unencrypted request, and on a hostile network that request can be intercepted. HSTS removes it for returning visitors: the browser switches to HTTPS on its own before anything is sent.

This is a security measure, not a ranking factor, so the finding is P3. The check runs only on HTTPS pages and only looks for the header on the page's own response; browsers ignore HSTS sent over plain HTTP.

How to fix it

  1. Make sure the whole site works over HTTPS, including every subdomain you plan to cover. Once a browser has the header, it will not load the site over HTTP until max-age runs out.
  2. Start with a short max-age, such as 300 (5 minutes), check that nothing breaks, then raise it to 31536000 (one year).
  3. Add includeSubDomains only when every subdomain has HTTPS. Add preload and submit the domain to hstspreload.org only if you are sure, because removal from browsers takes months.
  4. In nginx, use add_header with always in the HTTPS server block; a location with its own add_header does not inherit it, so repeat it there. In Apache, use Header always set (mod_headers). On Cloudflare: SSL/TLS → Edge Certificates → HTTP Strict Transport Security (HSTS).
  5. Run "Check again" on the page report to confirm the result.

Example

# nginx (in the server block that listens on 443)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

# Apache
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

How to confirm the fix

After the change, press "Check again" on the report: it lists what was fixed and how the score changed.

Check my page →

All findings and how the score works