Skip to content
Nazmul Nikhil
Menu

HSTS Not Supported (Semrush): Add the Strict-Transport-Security Header

Semrush notices your server doesn't send an HSTS header. HSTS tells browsers to always use HTTPS. Here's how to add it without locking yourself out.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
HSTS Not Supported (Semrush): Add the Strict-Transport-Security Header
Photo: Zoshua Colah on Unsplash

In short

Semrush notices "HSTS not supported" when your server doesn't send the Strict-Transport-Security header. With HSTS, browsers that have visited once always go straight to HTTPS, skipping the insecure redirect. Add it only after HTTPS works everywhere, starting with a short max-age.

HSTS is a security header. It doesn't affect rankings directly, but it closes a small gap left by HTTP-to-HTTPS redirects.

The header

Start short:

Strict-Transport-Security: max-age=300

Then, once everything works, raise it:

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

Only add includeSubDomains if every subdomain supports HTTPS.

Where to add it

Apache (.htaccess):

Header always set Strict-Transport-Security "max-age=31536000"

Cloudflare: SSL/TLS > Edge Certificates > HSTS. Shopify, Webflow and Wix: managed by the platform. WordPress: set at the server or CDN level, or with a security plugin.

This guide isn't affiliated with or endorsed by Semrush.

Sources and references

TAGSSemrush Site AuditSemrush hsts not supportedHsts headerStrict-transport-security
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com