# Missing HSTS header

> Understand what HSTS protects, verify the response header, and roll out HTTPS enforcement safely across a site

Canonical: https://scaplet.com/seo-issues/missing-hsts

Guide SEO issue · Security

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fmissing-hsts%20(%22Missing%20HSTS%20header%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fmissing-hsts%20(%22Missing%20HSTS%20header%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fmissing-hsts%20(%22Missing%20HSTS%20header%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fmissing-hsts%20(%22Missing%20HSTS%20header%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 4 minutes.

1. [Know what HSTS changes 01](#know-what-hsts-changes)
2. [Check the header in two minutes 02](#check-the-header-in-two-minutes)
3. [Roll it out in stages 03](#roll-it-out-in-stages)
4. [Keep HSTS distinct from HTTPS migration work 04](#keep-hsts-distinct-from-https-migration-work)

_01_Good to know

## Know what HSTS changes

The `Strict-Transport-Security` response header tells a browser that the host should only be accessed over [HTTPS](/glossary/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](/seo-issues/mixed-content-issue), 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.

Treat subdomains as a separate rollout decision

`includeSubDomains` applies the policy to every subdomain. Add it only after confirming that every host you intend to cover has working HTTPS, including old admin, email, API, and customer-managed subdomains.

_02_How 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](/glossary/301-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.

_03_Staged ramp-up from hstspreload.org, plus the preload header

## Roll it out in stages

Stage

### 5 minutes

Header value

`Strict-Transport-Security: max-age=300; includeSubDomains`

Use when

You have examined all subdomains, including nested and internal ones, and confirmed they work over HTTPS.

Stage

### 1 week

Header value

`Strict-Transport-Security: max-age=604800; includeSubDomains`

Use when

You waited the full previous `max-age` and found no broken pages or metric drops.

Stage

### 1 month

Header value

`Strict-Transport-Security: max-age=2592000; includeSubDomains`

Use when

Same check again; hstspreload.org says to wait the full `max-age` of each stage before moving on.

Stage

### [Preload](/glossary/preload) (optional)

Header value

`Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`

Use when

You meet the submission requirements and accept the commitment. The service itself says preloading is not recommended and its benefit over HSTS is minimal.

The staged values come from hstspreload.org, the preload service Google hosts. Its submission form requires a valid certificate, an HTTP-to-HTTPS redirect on the same host if you listen on port 80, HTTPS on all subdomains (including `www` if a DNS record exists), and an HSTS header on the base domain with `max-age` of at least 31536000 seconds, `includeSubDomains`, and `preload`. MDN adds that every subdomain host should send the header itself, because a browser may contact a subdomain before the parent domain, and that the header must be sent over HTTPS only: browsers ignore it over HTTP.

If you need to turn off a policy, `max-age=0` removes it when a browser receives that header over HTTPS. MDN also says that if a response from a host that previously sent the header omits it, the previous policy stays in effect until it expires, and that you cannot disable HSTS over insecure HTTP. Plan a rollback from a working HTTPS endpoint.

_04_Checklist

## Keep HSTS distinct from HTTPS migration work

First_2_
**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.

Next_2_
**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](/glossary/indexing) findings or force Google to choose a specific URL.

Then_1_
For those related tasks, see [no HTTPS](/seo-issues/no-https), [expired SSL certificates](/seo-issues/expired-ssl-certificate), and [mixed content](/seo-issues/mixed-content-issue).

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. 01 [Strict-Transport-Security header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security) developer.mozilla.org · checked 2026-10-24
2. 02 [How to specify a canonical URL with rel=canonical and other methods](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-10-24
3. 03 [HSTS Preload List Submission](https://hstspreload.org/) hstspreload.org · checked 2026-10-24

Questions

## Asked a lot.

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

_01_ Is 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.

_02_ Should 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.

_03_ Does 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.

## Keep learning

[All seo issues](/seo-issues)

[Learn Expired SSL certificate Security and mobile](/seo-issues/expired-ssl-certificate) [Related HTTPS Crawling and indexing](/glossary/https) [Read next Mixed content Security and mobile](/seo-issues/mixed-content-issue) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in SEO issues
[Missing canonical tag](/seo-issues/missing-canonical-tag) [Missing H1](/seo-issues/missing-h1) [Missing meta description](/seo-issues/missing-meta-description) [Missing structured data](/seo-issues/missing-structured-data)

More in Security and mobile
[Expired SSL certificate](/seo-issues/expired-ssl-certificate) [Intrusive interstitials](/seo-issues/intrusive-interstitial) [Missing HSTS header](/seo-issues/missing-hsts) [Mixed content](/seo-issues/mixed-content-issue) [No HTTPS](/seo-issues/no-https)

Terms on this page
[HTTPS](/glossary/https) [301 redirect](/glossary/301-redirect) [preload](/glossary/preload) [Indexing](/glossary/indexing)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
