HTTPS & SSL for SEO 2026: Certificates, HSTS, Mixed Content & Migration

Use HTTPS for production sites to protect transport and support secure-context features. Local development has some trustworthy-origin exceptions. Google uses HTTPS as a lightweight ranking signal, but a certificate alone does not establish site safety or traffic growth. Check redirects, certificate renewal and mixed content during migration.

Why HTTPS Matters for SEO

  • Ranking signal. Lightweight, but confirmed since 2014.
  • Browser warnings: Browsers may label insecure HTTP contexts; the UI and behavior vary. HTTPS is important for transport protection, not proof of a trustworthy business.
  • Modern web platform features. Service Workers, Web Push, geolocation, camera, Payment Request, WebAuthn — all require HTTPS.
  • Referrer data: With common referrer policies, secure-to-insecure navigations omit the Referer header. Behavior depends on the policy and context; HTTPS alone does not ensure complete attribution.
  • HTTP/2 and HTTP/3: Major browsers use these protocols with TLS. Performance depends on network conditions, connection reuse and server behavior; newer is not automatically faster.

Certificates

Domain validated (free)

Let’s Encrypt offers free domain-validated certificates. Certificate lifetimes and available profiles can change; check the issuer’s current documentation. Use reliable automated renewal and expiry monitoring. Provider support is not universal.

Organization validated (paid)

Organization-validated certificates include verified organization information. Choose a certificate based on identity, policy and client requirements rather than assuming a browser badge or SEO benefit.

Extended validation (paid)

Extended-validation certificates involve additional organization validation. Browser presentation and procurement requirements vary; there is no universal value judgment or distinct Google ranking benefit established here.

Wildcard and SAN

A wildcard such as *.example.com covers a single additional hostname label, not example.com itself or deeper names such as a.b.example.com. Include other required names explicitly in certificate subject alternative names. Check issuer support and validation requirements.

HSTS Configuration

HSTS (HTTP Strict Transport Security) is a response header that instructs browsers to always use HTTPS for your domain.

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  • max-age — how long the browser remembers (in seconds). 31536000 = 1 year.
  • includeSubDomains — applies to all subdomains.
  • preload expresses preload intent, but adding the token does not submit a domain or put it in browser lists. Eligibility checks and an explicit submission are separate.

Test HTTPS and affected subdomains before increasing HSTS max-age. A short initial duration can reduce recovery risk; choose a rollout based on evidence, not a mandatory weekly schedule. Preloading is optional and has separate eligibility and removal implications.

HSTS preload affects browsers that ship the entry, while the HSTS header has its own max-age. Removal from preload requires submission and browser updates and can take time. Verify HTTPS support on affected subdomains before opting in.

Mixed Content

Mixed content occurs when a secure page requests insecure resources. Modern browsers upgrade some image, audio and video requests to HTTPS and block other mixed content; an upgrade can fail. Do not assume passive mixed content simply loads with a warning.

Common mixed content sources

  • Hard-coded http:// URLs in HTML, CSS, or JavaScript
  • Image and asset references in database content from before HTTPS migration
  • Third-party embeds (videos, widgets, ads) served over HTTP
  • CDN configurations not yet updated to HTTPS
  • Old WordPress posts with hard-coded HTTP image URLs

Auditing for mixed content

  • Open DevTools > Console — warnings flag mixed content on the active page.
  • Crawl with Screaming Frog and filter for mixed content.
  • Database search-and-replace tools (WP-CLI search-replace, Better Search Replace plugin) for content stores.
  • Set Content-Security-Policy: upgrade-insecure-requests as a transitional defense — browsers auto-upgrade HTTP subresources to HTTPS.

Security Headers

Security headers can reduce specific browser risks when correctly configured. They are not established indirect ranking or trust signals; test the policy against actual site functionality.

Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Security-Policy: default-src 'self'; ...
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(), camera=(), microphone=()
Cross-Origin-Opener-Policy: same-origin
X-Frame-Options: DENY  (or CSP frame-ancestors)

Validate at securityheaders.com — target A or A+.

HTTP-to-HTTPS Migration Playbook

  1. Obtain and install the certificate on origin and CDN.
  2. Test HTTPS access on staging or as a separate URL; verify rendering.
  3. Update internal absolute links in templates, content, CSS, JS.
  4. Update database content with search-and-replace for HTTP image and asset URLs.
  5. Update canonical tags and sitemap to https:// URLs only.
  6. Configure 301 redirects from every http:// URL to its https:// equivalent. Preserve full URL paths and query strings.
  7. Verify redirects with curl or a crawler — every HTTP URL should return 301 to HTTPS counterpart.
  8. Update Search Console — add the HTTPS property, verify ownership, submit the new sitemap.
  9. Update analytics, ad campaigns, social profiles, email signatures to HTTPS URLs.
  10. Monitor relevant indexing, crawling, redirects and traffic after migration. There is no universal four-to-six-week stabilization deadline.
  11. Enable or extend HSTS only after confirming readiness, including affected subdomains. A fixed number of elapsed weeks does not establish safety.

Common Pitfalls

  • Expired certificates. Set up monitoring (UptimeRobot, BetterStack) with alerts at 30 days before expiry. Auto-renewal scripts can fail silently.
  • Redirect chains. http://www.example.com → https://www.example.com → https://example.com should be one hop, not two.
  • Missing redirects for subdomains or alternative entry points (with-trailing-slash, lowercase, etc.).
  • Mixed content in third-party embeds — work with vendors or remove them.
  • HSTS preload regret. Submitting before HTTPS is rock-solid leaves you stuck.
  • Forgetting to update robots.txt and sitemap URLs from HTTP to HTTPS.

Configure Robots.txt for Your HTTPS Site

If the site publishes robots.txt, update any sitemap reference to its correct HTTPS URL. A Sitemap directive is useful but is not a mandatory migration step or indexing guarantee.

Robots.txt Generator →

Frequently Asked Questions

Google has described HTTPS as a lightweight ranking signal. It protects transport and supports secure-context browser features, but does not certify a trustworthy site or guarantee rankings. Browser warnings and feature restrictions depend on context; use HTTPS and monitor the migration.
A trusted automated domain-validation certificate, such as one from Let’s Encrypt, can suit many public sites. Configure renewal according to the current issuer lifetime and client requirements, and monitor failures. OV and EV add identity validation rather than inherently stronger encryption. Check contractual or regulatory requirements separately.
HSTS tells supporting browsers to use HTTPS for a host for a specified period after receiving the policy over HTTPS. Deploy only after verifying HTTPS readiness. Start with a short duration and increase gradually; includeSubDomains and preloading require every affected subdomain to support HTTPS and create long-lived operational commitments.
Mixed content occurs when an HTTPS page references HTTP resources. Browsers block some requests and upgrade some image, audio or video requests; insecure images are not simply always loaded with a warning. Use explicit HTTPS URLs and inspect network errors and console messages in target browsers.
Test HTTPS and map HTTP URLs to corresponding HTTPS URLs using permanent redirects. Update internal references, canonicals, sitemaps and relevant properties, then monitor errors and indexing. Search Console Change of Address is not used for an HTTP-to-HTTPS-only move. Ranking fluctuations can occur; no migration guarantees zero loss.