HTTPS migration

How to Move Your Website from HTTP to HTTPS (Without Losing Rankings)

Installing a certificate is only the first step of an HTTPS move. This checklist covers redirects, canonicals, sitemaps, Search Console and HSTS, in the order that protects your rankings.

The short answer

Here is how to move your website from HTTP to HTTPS: install an SSL/TLS certificate that covers every hostname, redirect every HTTP URL to its HTTPS version with a permanent 301 redirect, and update canonical tags, internal links and XML sitemaps to HTTPS. Then add the HTTPS version to Google Search Console and watch crawling for a few weeks.

Done in that order, an HTTP-to-HTTPS migration keeps your URLs’ ranking signals. Google treats it as a site move and expects some short-term movement while it recrawls. The steps below show how to convert HTTP to HTTPS with an SSL certificate and avoid the mistakes that cause real losses.

No certificate yet?

For most migrations, a domain validated certificate is all you need to switch to HTTPS. Pick one that covers both www and non-www.

Compare DV SSL certificates

Key facts

ItemWhat to do
CertificateCovers every hostname you serve, including www and non-www
RedirectsServer-side 301 (or 308), one hop, same path, kept for at least a year
Site signalsCanonicals, internal links, sitemaps and hreflang point to HTTPS
Search ConsoleVerify the HTTPS version and submit the new sitemap
HSTSOnly after everything works over HTTPS; preload last, if at all

Prepare before you switch

A good migration starts with a list of what you have. Crawl the HTTP site and export every indexable URL, so you can check later that each one redirects correctly. Note your current traffic and top pages in Search Console as a baseline.

Next, make sure the certificate covers every hostname that serves content. A common gap is a certificate for example.com that does not include www.example.com. If you have not set up the certificate yet, follow our guide to install an SSL certificate on your server or hosting panel, then load a few pages over HTTPS by hand before you redirect anything.

Tip: Run the HTTPS site in parallel for a short time without redirects. You can then fix broken resources and test forms, logins and checkout before search engines and visitors are sent there.

How to move your website from HTTP to HTTPS

  1. Install and test the certificate

    Cover every hostname, load key pages over HTTPS and fix broken resources before you redirect.

  2. Redirect HTTP to HTTPS

    Add server-side 301 redirects from every HTTP URL to the same path on HTTPS, in a single hop.

  3. Update site signals

    Switch canonicals, internal links, sitemaps, hreflang and structured data to HTTPS URLs.

  4. Tell Google and monitor

    Verify the HTTPS property in Search Console, submit the sitemap and watch indexing and errors.

Set up 301 redirects the right way

Use permanent, server-side redirects from each HTTP URL to the identical path on HTTPS. Google’s site move guidance names 301 and 308 redirects and states that permanent redirects do not cost PageRank. Avoid redirect chains: send http://www.example.com/page straight to the final HTTPS host, not through two or three intermediate URLs.

On Apache, a rule in the virtual host or .htaccess handles the whole site:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

On Nginx, use a separate server block that listens on port 80 and returns a 301 to the HTTPS host plus the original request URI. On managed hosting, look for a “force HTTPS” setting, and confirm with a header check that it sends a 301 rather than a temporary 302.

  • Keep the path and query string unchanged.
  • Redirect to your preferred host (www or non-www) in the same hop.
  • Keep the redirects in place for at least a year; in practice, leave them permanently.

Special cases to plan for

  • CDN or proxy in front

    Set the CDN to connect to your origin over HTTPS with a valid certificate. A CDN that talks to the origin over plain HTTP can cause redirect loops or leave that leg unencrypted.

  • CMS address settings

    Many content management systems store the site address in the database. Change it to HTTPS so new links, feeds and media URLs are generated correctly.

  • Important backlinks

    Redirects pass old links on, but ask partners, directories and your own social profiles to update the most valuable links to HTTPS.

  • Ads and campaigns

    Update landing page URLs in ad platforms and email templates, so paid traffic does not go through an extra redirect on every click.

Redirects catch old links, but your own site should point to HTTPS directly. Every signal that still names an HTTP URL makes Google pick between two versions.

SignalWhat to change
Canonical tagsEach page’s rel="canonical" points to its own HTTPS URL
Internal linksNavigation, content and footer links use HTTPS or relative paths
XML sitemapsList only HTTPS URLs; submit the new sitemap
hreflang and structured dataAll URLs inside them switch to HTTPS
robots.txtAvailable on HTTPS and not blocking the new URLs
Third-party settingsAnalytics, ad platforms, CDN and social profiles use the HTTPS address

Images, scripts and stylesheets that still load over HTTP trigger browser warnings on the new pages. Our guide shows how to find and fix mixed content across templates and databases.

Do I need to update Google Search Console?

Yes. Add and verify the HTTPS version of your site in Search Console, or use a domain property that covers both protocols and all subdomains. Then submit your HTTPS sitemap so Google discovers the new URLs quickly.

Keep the HTTP property verified as well. Google recommends verifying both the old and new versions during a move, including www and non-www. If your verification uses an HTML file or meta tag, make sure it is reachable on HTTPS.

You do not need the Change of Address tool. Google’s documentation states that it is meant for moves to a new domain or subdomain, not for switching from HTTP to HTTPS.

Watch these reports after the switch

For the first weeks, check Search Console every few days. These reports show whether Google follows your redirects and indexes the HTTPS URLs.

  • Page indexing: HTTPS URLs rising, HTTP URLs moving to “Page with redirect”
  • Sitemaps: the HTTPS sitemap processed without errors
  • Crawl stats: no spike in server errors or timeouts
  • Performance: clicks and impressions compared with your baseline
  • HTTPS report: pages served over HTTPS without problems

Will moving to HTTPS affect my SEO?

Expect some short-term fluctuation, but no lasting ranking loss when the migration is done right. Google’s site move documentation says rankings can be unstable during a move and that this settles over time; on medium-sized sites, replacing old URLs in results can take several weeks.

Lasting drops almost always trace back to technical mistakes rather than HTTPS itself. HTTPS is a positive signal for users and search engines; the background is covered in our article on SSL and SEO.

MistakeEffectFix
302 instead of 301Google may keep the HTTP URL as canonicalChange to a permanent redirect
Redirect chainsSlower crawling, diluted signalsRedirect in one hop to the final URL
Canonicals still on HTTPConflicting signals, slow switchoverUpdate templates and plugins
Certificate missing a hostnameBrowser errors on www or non-wwwUse a certificate covering both
robots.txt blocks HTTPSNew URLs not crawledPublish a correct robots.txt on HTTPS

Should I enable HSTS right away?

No. Enable HSTS only after the whole site, including every subdomain you plan to cover, works over HTTPS and you have tested it. HSTS tells browsers to use HTTPS only for your domain for a set time, so a mistake cannot be undone quickly for returning visitors.

Start with a short max-age, raise it once nothing breaks, and add includeSubDomains only when all subdomains support HTTPS. Be most careful with preloading: as of October 2026, the preload list at hstspreload.org requires a max-age of at least one year, includeSubDomains and the preload directive, and it warns that removal can take months to reach users. Read our explainer on HSTS before you set the header.

Verify the migration

Check the result from the outside. Run each hostname through our SSL checker to confirm the certificate, chain and covered names, then re-crawl your old URL list and confirm that every HTTP URL returns one 301 to the matching HTTPS page.

Spot-check templates in a browser for padlock warnings, test forms and logins, and compare Search Console data with your baseline for the next several weeks.

DV certificates for your HTTPS move

Get the certificate for your HTTPS move

A domain validated certificate encrypts every page and is issued after a domain control check. Choose one that covers both www and non-www.

Compare DV SSL certificates

Categories

  • DV SSL Certificates

    Fast domain validation for websites that primarily need HTTPS and do not require organization-level…

    from $8.99

Related articles

Frequently asked questions

How do I switch my site from HTTP to HTTPS?

Install a certificate that covers every hostname, then add server-side 301 redirects from each HTTP URL to the same HTTPS path. Update canonical tags, internal links and XML sitemaps to HTTPS. Finally, verify the HTTPS version in Google Search Console, submit the new sitemap and monitor indexing. Fix mixed content before you redirect, and enable HSTS only after testing.

Will moving to HTTPS affect my SEO?

Rankings may fluctuate for a short time while Google recrawls and swaps HTTP URLs for HTTPS ones. Google calls this normal for a site move. When you use one-hop 301 redirects and update canonicals, internal links and sitemaps, you should not lose rankings. Lasting drops usually come from technical mistakes like temporary redirects, chains or blocked crawling.

Do I need to update Google Search Console?

Yes. Add and verify the HTTPS version of your site as a property, or use a domain property that covers both protocols. Submit your HTTPS sitemap there and keep the old HTTP property verified to watch redirects. The Change of Address tool is not needed, because Google reserves it for moves to a different domain or subdomain.

Should I enable HSTS right away?

No. Turn on HSTS after the whole site works over HTTPS and you have tested redirects, subdomains and third-party resources. Start with a short max-age and raise it gradually. Treat preloading with extra caution: the preload list requires a one-year max-age and includeSubDomains, and removal can take months to reach browsers.