What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

When changing domains, set up HSTS only after ensuring that everything works well on HTTPS.
36:14
🎥 Source video

Extracted from a Google Search Central video

⏱ 1h00 💬 EN 📅 27/07/2018 ✂ 33 statements
Watch on YouTube (36:14) →
Other statements from this video 32
  1. 0:36 How can you uncover hidden SEO problems in a domain using Google Search Console?
  2. 1:48 Can you really detect the hidden algorithmic penalties of an expired domain?
  3. 3:50 How should you handle duplicate content when managing multiple distinct entities?
  4. 4:25 Should you duplicate your content for every local establishment or consolidate it on a single page?
  5. 6:18 How can massive DMCA removals destroy the ranking of an entire website?
  6. 6:18 Can mass DMCA takedowns really harm a site's ranking?
  7. 7:18 Should you favor a subdomain or a subdirectory for hosting your AMP pages?
  8. 7:22 Where is the best place to host your AMP pages: subdomain, subdirectory, or parameter?
  9. 8:25 Does the canonical tag really work if the pages are different?
  10. 8:35 Should you really remove rel=canonical from your paginated pages?
  11. 10:04 Can scraping really devastate the SEO of a low-authority site?
  12. 11:23 Does the server's IP address still influence local search rankings?
  13. 11:45 Does your server's IP address still impact your local SEO?
  14. 13:39 Are clickable images without an <a> tag really invisible to Google?
  15. 13:39 Can a link without an <a> tag pass on PageRank?
  16. 15:11 How does Google really index your AMP pages when there's a noindex?
  17. 15:13 Does a noindex tag on an HTML page really prevent the indexing of its associated AMP version?
  18. 18:21 How long does it take to recover after a complete manual action?
  19. 18:25 How long does it take to recover from a Google manual action?
  20. 21:59 Should you include keywords in your domain name to rank better?
  21. 22:43 Should you really index your robots.txt file in Google?
  22. 24:08 Why does Google Cache display your page differently from the actual rendering?
  23. 25:29 DMCA or disavow: Why does Google prefer one over the other to handle duplicate content and toxic backlinks?
  24. 28:19 Does crawl rate really impact rankings on Google?
  25. 28:19 Is your server holding back Google’s crawl more than you realize?
  26. 31:00 Are social signals really useless for Google ranking?
  27. 31:25 Do social profiles really improve Google rankings?
  28. 32:03 Do multiple social profiles really boost your SEO?
  29. 33:00 Are link directories truly overlooked by Google?
  30. 33:25 Are directory links really ignored by Google?
  31. 42:35 Why do review stars take so long to show up on Google?
  32. 52:00 Does stock level really influence the ranking of your product listings?
📅
Official statement from (7 years ago)
TL;DR

Google recommends not enabling HSTS until your HTTPS migration is fully stabilized. This precaution prevents blocking access to your site if issues arise with certificates or SSL configuration. In practice, wait several weeks after the switch to integrate HSTS into your headers, allowing time to verify that everything works smoothly.

What you need to understand

Why does Google warn against the early activation of HSTS?

HSTS (HTTP Strict Transport Security) forces browsers to only access your domain via HTTPS, never attempting an HTTP connection. Once this header is sent, browsers memorize this directive for the specified duration (often a year).

The issue arises when you activate HSTS too early during a migration. If an SSL certificate expires, if an HTTPS configuration fails, or if an overlooked subdomain is not yet secured, visitors face a dead end: the browser categorically refuses any backup HTTP connection. You lose access to the site, as do the users.

What is a domain migration and how does HSTS complicate things?

A domain migration typically involves three simultaneous changes: a new domain name, a transition to HTTPS, and massive 301 redirects. It’s already a dense technical project.

Adding HSTS into the mix is like locking a door before testing all the locks. If your CDN improperly delivers certificates, if an old subdomain still points to an HTTP IP, or if your Let's Encrypt auto-renewal fails, HSTS turns a minor incident into a total disaster.

How can you tell when it’s safe to enable HSTS?

Monitor for at least two to four weeks after migration. Ensure that all subdomains respond correctly over HTTPS, that certificates renew automatically, and that your monitoring tools raise no SSL alerts.

Also test critical user journeys: e-commerce checkout, contact forms, customer areas. Once this validation period is over, enable HSTS with a short duration (a few weeks), then gradually increase it to a year.

  • HSTS locks HTTPS access without fallback to HTTP
  • Any SSL error becomes blocking for visitors if HSTS is active
  • Wait 2 to 4 weeks after migration before enabling HSTS
  • Start with a short duration (low max-age) then gradually increase
  • Check all subdomains, certificates, and renewal processes

SEO Expert opinion

Is this recommendation consistent with field observations?

Absolutely. I've seen too many migrations fail due to HSTS activated too soon. The classic scenario: a migration on a Friday, HSTS in the header, a certificate expires over the weekend because an automatic renewal script only worked on the old domain.

The result? Site inaccessible until Monday, loss of SEO traffic, a sharp drop in SERPs, and a client who doesn’t understand why they can’t just "revert to HTTP." Because indeed, HSTS forbids that on the browser side, even if you remove the server header.

What nuances should be added to this directive?

Mueller's recommendation mainly targets large complex migrations with multiple subdomains, distributed infrastructure, or technical teams not well versed in HTTPS. If you’re migrating a small single-domain site with a wildcard certificate and solid monitoring, the risk is lower.

However, even in that case, there’s no rush. HSTS does not provide any documented direct SEO benefit from Google. Its purpose is purely security-related: to protect against SSL stripping attacks. Taking two extra weeks to enable it does not change your ranking at all.

Note: If you have submitted your domain to the Chrome HSTS preload list before finalizing the migration, you are in a precarious situation. Removal from this list takes months. Ensure that EVERYTHING is functioning before this irreversible step.

When can HSTS activation be expedited?

If your infrastructure is fully managed (Cloudflare, AWS CloudFront with ACM, Netlify), if your certificates are auto-renewed, and you have already validated all subdomains over HTTPS for several days, you can shorten the waiting period.

But even then, start with a max-age of 86400 (24 hours) rather than 31536000 (one year). You will still have time to increase. However, reducing a max-age that has already been sent is pointless: browsers retain the highest value they have seen.

Practical impact and recommendations

What should you do when migrating a domain?

Plan the migration in three distinct phases. First, migrate to the new HTTPS domain with 301 redirects, without HSTS. Let it run for at least two weeks, monitoring your server logs, Google Search Console, and uptime monitoring tools.

Next, enable HSTS with a short max-age (one week). Monitor for another week. If everything runs smoothly, move to a max-age of one month, then six months, then one year. This gradual approach limits damage in case of unexpected problems.

What critical mistakes must be avoided at all costs?

Never enable includeSubDomains in the HSTS header if you haven’t checked ALL subdomains. An old staging subdomain staging.mydomain.com still on HTTP? Visitors to that subdomain (or bots) get blocked.

Another trap: don’t enable HSTS and submit for preload at the same time. The preload is effectively irreversible, and removal takes 6 to 12 months. Validate HSTS in production for several months before considering preload.

How can you check if your HSTS configuration is ready?

Use SSL Labs to scan your domain and all critical subdomains. Check that certificates are valid, that trust chains are complete, and that automatic renewals are functioning.

Then test with a temporary HSTS header (max-age=60) on a test environment. Clear your browser's HSTS cache (chrome://net-internals/#hsts), then navigate. If everything passes, gradually extend the duration. This method provides you with a safety net before going into production.

  • Migrate the domain to HTTPS first without HSTS; wait 2 to 4 weeks
  • Check all subdomains, SSL certificates, and automatic renewal processes
  • Enable HSTS with max-age=604800 (one week) then increase gradually
  • Never enable includeSubDomains without exhaustive validation of all subdomains
  • Monitor Search Console, server logs, and uptime monitoring after each step
  • Avoid preload until HSTS has run without incidents for several months
Migrating a domain with a transition to HTTPS is a delicate technical project that requires multiple areas of expertise: infrastructure, security, and SEO. If you lack solid internal skills in these three areas, working with a specialized SEO agency can secure the process and avoid costly mistakes. A prior audit helps identify pitfalls before they become blocking issues.

❓ Frequently Asked Questions

Combien de temps faut-il attendre avant d'activer HSTS après une migration HTTPS ?
Minimum deux à quatre semaines. Ce délai permet de détecter les problèmes de certificats, de configuration SSL ou de sous-domaines oubliés avant de verrouiller l'accès HTTPS avec HSTS.
HSTS améliore-t-il le référencement Google ?
Non, aucune donnée officielle ne montre un impact SEO direct de HSTS. Google valorise HTTPS, mais HSTS reste un mécanisme de sécurité sans bonus ranking documenté.
Peut-on désactiver HSTS si un problème survient ?
Vous pouvez retirer le header côté serveur, mais les navigateurs conservent la directive pendant toute la durée max-age déjà envoyée. Impossible de forcer un retour HTTP immédiat côté client.
Que se passe-t-il si j'active includeSubDomains sans vérifier tous les sous-domaines ?
Tout sous-domaine encore en HTTP devient inaccessible pour les visiteurs. Le navigateur refuse la connexion, même si le sous-domaine fonctionne techniquement en HTTP.
Quelle valeur max-age utiliser lors de la première activation de HSTS ?
Commencez avec 604800 (une semaine) ou moins. Une fois la stabilité confirmée, augmentez progressivement jusqu'à 31536000 (un an). Évitez de démarrer directement avec une longue durée.
🏷 Related Topics
HTTPS & Security AI & SEO JavaScript & Technical SEO Domain Name Redirects

🎥 From the same video 32

Other SEO insights extracted from this same Google Search Central video · duration 1h00 · published on 27/07/2018

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.