Free auditStart free
GuideSEO issue · Security

Missing HSTS header

Understand what HSTS protects, verify the response header, and roll out HTTPS enforcement safely across a site's hosts and subdomains.

4 min
read
3
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

HTTP Strict Transport Security (HSTS) tells browsers to use HTTPS for future connections and block bypasses of certificate errors. It is a browser security policy, not a Search Console warning or a substitute for redirects and valid certificates. Confirm each intended subdomain supports HTTPS before adding includeSubDomains, and treat preload as a long-term commitment.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Good to know

Know what HSTS changes

The Strict-Transport-Security response header tells a browser that the host should only be accessed over HTTPS. After receiving the policy on a secure response, the browser remembers it for the specified max-age and upgrades later HTTP attempts to HTTPS. It also prevents users from bypassing certain secure-connection errors, such as an invalid certificate.

HSTS is useful after HTTPS works reliably. It does not install a certificate, repair an HTTP page, fix mixed content, or replace a server redirect for visitors and crawlers that do not already remember the policy. Google documents HSTS as one signal that can support preferring HTTPS URLs as canonical, while also saying HSTS cannot override a bad certificate or HTTPS-to-HTTP redirects.

02How it works

Check the header in two minutes

  1. 1

    Request the HTTPS page

    Use DevTools Network or a header inspection tool on the final HTTPS response. Look for Strict-Transport-Security in the response headers, not in the HTML source.

  2. 2

    Check all host variants

    Test the apex domain, www, login and API hosts, and any other subdomain that should serve pages. Each host should be able to return HTTPS and send its intended policy.

  3. 3

    Check redirects and certificates

    Request the HTTP version and confirm it reaches the intended HTTPS URL with a permanent redirect such as 301; MDN says that redirect must not carry the HSTS header. Inspect the certificate for each relevant hostname and verify that HTTPS does not redirect back to HTTP.

  4. 4

    Review the current policy

    Record max-age, whether includeSubDomains is present, and whether preload is included. Confirm that the values match the rollout decision and current hosting configuration.

Browsers learn HSTS from secure HTTPS responses, not from an insecure HTTP response. Test with a clean browser profile or an HTTP header checker when you need to confirm the origin is sending the header; a browser's remembered policy can hide a missing header on a later visit, since a previously received header stays in effect until it expires.

04Checklist

Keep HSTS distinct from HTTPS migration work

First2
HSTS does not replace a redirect. Configure HTTP requests to reach the HTTPS URL for first-time visitors and systems that have not learned the policy.
HSTS does not repair TLS. Fix certificate coverage, expiry, and chain problems before increasing max-age or adding subdomains.
Next2
HSTS does not resolve insecure page resources. Audit scripts, stylesheets, images, and other dependencies loaded over HTTP separately.
HSTS is a browser policy, not an indexing directive. Do not expect it to clear unrelated Page Indexing findings or force Google to choose a specific URL.
Then1
For those related tasks, see no HTTPS, expired SSL certificates, and mixed content.

Google says it prefers equivalent HTTPS URLs as canonical, but its troubleshooting guidance also calls out invalid certificates, HTTPS pages with insecure dependencies, redirects through HTTP, and an HTTPS page canonicalized to HTTP as conflicting signals. Fix those fundamentals first; HSTS cannot override them.

After rollout, recheck the HTTPS response headers on every intended host, monitor certificate renewals, and keep a current inventory of subdomains. A header that makes the main site safer can also make a forgotten subdomain inaccessible until its HTTPS setup is repaired.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • mozilla.org
  • google.com
  • hstspreload.org
  1. 01Strict-Transport-Security headerdeveloper.mozilla.org · checked 2026-10-24
  2. 02How to specify a canonical URL with rel=canonical and other methodsdevelopers.google.com · checked 2026-10-24
  3. 03HSTS Preload List Submissionhstspreload.org · checked 2026-10-24
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Is HSTS a Google ranking factor?

Google documents HSTS as one signal that can support choosing HTTPS as canonical over an equivalent HTTP URL. The header's primary function is browser security, and it does not override bad certificates or conflicting HTTPS setup.

02Should I use `includeSubDomains`?

Only if every subdomain in scope supports HTTPS and will continue to do so. Otherwise, the policy can make those hosts unreachable in browsers that have learned it.

03Does HSTS redirect visitors from HTTP to HTTPS?

A browser that already knows the HSTS policy upgrades future HTTP attempts. Keep a server-side HTTP-to-HTTPS redirect for first-time visitors and other clients.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane