Question

HTTPS Migration: SEO Impact and Implementation Guide

6 min read

Short answer

Moving from HTTP to HTTPS is, for Google, a site move with URL changes: every URL gets a new protocol, so every old URL needs a permanent redirect to its HTTPS equivalent, and every internal reference has to change. Done that way, the move gives Google what it needs to transfer the site's signals to the new URLs; Google even says you don't need its Change of Address tool, because "Google will figure out your changes for you." Expect HTTPS to protect visitors and remove browser warnings, not to lift rankings on its own: when Google announced HTTPS as a ranking signal in 2014, it called it "only a very lightweight signal".

Sources

  1. 1developers.google.com
  2. 2developers.google.com
  3. 3developers.google.com
  4. 4web.dev
  5. 5support.google.com

Ask next

Three things are documented.

A ranking signal, a small one. Google’s August 7, 2014 post, HTTPS as a ranking signal, said: “For now it’s only a very lightweight signal”, described as “affecting fewer than 1% of global queries”, and added that “over time, we may decide to strengthen it”. Its current page experience documentation lists HTTPS among page experience questions and says that, beyond Core Web Vitals, “other page experience aspects don’t directly help your website rank higher in search results.”

A canonicalization preference. Google’s canonical guidance says it “prefers HTTPS pages over equivalent HTTP pages as canonical,” except when the HTTPS page has an invalid certificate, insecure dependencies other than images, a redirect to or through HTTP, or a canonical pointing to the HTTP page. Canonicals are covered in canonical tags.

Fewer warnings for visitors. Chrome reports whether a page’s connection is secure, and Google’s page experience documentation points site owners to that check. A security warning matters on pages with forms and logins, and it affects trust rather than rankings.

Before the Move

Google’s site move guide applies in full, because “URL changes from HTTP to HTTPS” are one of the move types it covers. The preparation:

  1. Get and install the certificate. For a move to HTTPS, Google says to “get and configure the required TLS certificates on your server.” Cover every host you serve, including www and non-www, with a single-domain, multi-domain or wildcard certificate as your setup requires, and plan for automatic renewal.
  2. Crawl the HTTP site and export every URL, its status code and its canonical. This list becomes the redirect map and the baseline for checking afterwards.
  3. Update references in code, not only pages. The web.dev guide to enabling HTTPS on your servers warns: “You’ll also need to change intrasite URLs in your stylesheets, JavaScript, redirect rules, <link> tags, and CSP declarations, not just in your HTML pages.”
  4. Find mixed content. Any HTTP resource on an HTTPS page, such as a script, stylesheet, image or iframe, is mixed content, and browsers can block it or flag the page; the web.dev guide notes, for example, that “an HTTP <iframe> doesn’t work on an HTTPS page”. Check third-party embeds and hard-coded URLs in the database.
  5. Verify every variant in Search Console. Google says to “verify all variants of both the old and new sites”, including “both the HTTPS and HTTP site variants”.
  6. Prepare robots.txt and remove development blocks. Google warns that sites that block crawling or use noindex during development must remove those rules when the move starts.

Implementation

  1. Redirect every HTTP URL to its HTTPS equivalent with a server-side 301 or 308, path for path, in one hop. Combine the protocol rule with your host rule, so http://example.com/page goes straight to https://www.example.com/page if www is your preferred host, not through two redirects. Chains are covered in redirect chains and loops.
  2. Change canonicals to HTTPS on every page, including self-referencing canonicals.
  3. Update internal links to HTTPS URLs directly, so pages don’t depend on redirects; see internal linking strategy.
  4. Update structured data, hreflang and Open Graph URLs to HTTPS. Hreflang pairs must match the new URLs exactly; see hreflang implementation.
  5. Publish a sitemap of HTTPS URLs and submit it in Search Console; see XML sitemaps.
  6. Serve robots.txt on HTTPS and keep the HTTP robots.txt redirecting to it. Robots.txt behavior on redirects is in robots.txt syntax and common mistakes.

Don’t use the Change of Address tool. Its help page lists “Changing address from http to https” under “When not to use this tool”, and the site move guide repeats: “You don’t need it for HTTP to HTTPS moves”.

After the Move

  • Crawl the HTTP URL list and confirm each returns one redirect to a 200 HTTPS URL.
  • Crawl the HTTPS site for mixed content, HTTP canonicals, HTTP internal links and HTTP URLs in structured data.
  • Watch the Page indexing report in the HTTPS or Domain property for indexed HTTPS pages rising and HTTP pages shifting to “Page with redirect”.
  • Check the Crawl Stats report for a spike in errors or response time on the new host setup.
  • Update external systems: analytics stream URLs, ad destination URLs, email templates, business listings and social profiles, so they don’t send visitors through redirects.

Google says that with any significant site change “you may experience ranking fluctuations while Google recrawls and reindexes your site”, and that for medium-sized sites it “can take a few weeks or more” for Google to show the new URLs. Keep the redirects “for as long as possible, generally at least 1 year”, as Google’s site move guide recommends.

HSTS

HTTP Strict Transport Security tells browsers to use HTTPS for your site even when a visitor follows an http:// link. The web.dev guide describes it as the step where you “lock in” the use of HTTPS, and says it “avoids the round-trip cost of the 301 redirect” that sends HTTP requests to HTTPS. Enable it with the Strict-Transport-Security response header.

It comes with a warning worth reading before you turn it on: “Clients that have listed your site as a known HSTS Host are likely to hard-fail if your site ever has an error in its TLS configuration, (such as an expired certificate).” The guide’s advice: “Don’t enable HSTS until you’re certain your site operation is robust enough to avoid ever deploying HTTPS with certificate validation errors”, and start with a low max-age, raising it as you gain confidence. HSTS preloading, where browsers ship with your domain on an HTTPS-only list, is a further and harder-to-reverse step; read the preload list’s own requirements before submitting.

Set the Secure flag on cookies as well, so authentication and preference cookies are never sent over HTTP.

Troubleshooting

Symptom Likely cause Fix
Browser shows "Not secure" or a broken padlock on HTTPS pages Mixed content Replace HTTP resource URLs with HTTPS ones, or remove the resource
HTTP URLs still indexed weeks later Redirect missing, temporary, or chained; HTTP canonicals or links remain Confirm a one-hop 301 or 308, and update canonicals, sitemaps and internal links
Google keeps the HTTP URL as canonical One of Google's exceptions: invalid certificate, insecure dependencies, redirect through HTTP, or a canonical to HTTP Fix the exception listed in Google's canonical guidance
Redirect loop Protocol rule in the server and in the CMS or CDN disagree Keep one HTTPS rule in one system
Sudden certificate errors Certificate expired or doesn't cover a host Automate renewal; check every host name the certificate must cover
Site unreachable after enabling HSTS TLS error on a host browsers now force to HTTPS Fix the certificate; HSTS can't be undone quickly for visitors who already received it

Turn on HSTS only after certificate renewal has run automatically without errors, and start with a low max-age; once browsers hold the policy, a TLS error makes those visitors’ connections likely to fail outright.

Link profile