Guide SEO & Marketing

How to migrate a site without losing traffic

Changing host does not hurt rankings by itself. A migration that changes URLs or breaks redirects is what actually does the damage.

Updated 9 min read Intermediate

A hosting migration and an SEO risk are two different things that happen to coincide often enough that people conflate them. Moving a website to new hosting, by itself, does not touch anything a search engine ranks on. What actually causes damage is everything that can go wrong during the move — a changed URL with no redirect, a staging noindex tag left switched on, a broken page nobody tested before cutover. This guide is the checklist for avoiding those specifically, alongside the general migration process covered in migrating a website to new hosting.

This is the SEO layer, not the whole migration

For the mechanics of actually copying files, exporting a database, and switching DNS safely, see how to migrate a website to new hosting and the website migration checklist. This guide assumes that process and focuses only on what protects rankings and traffic through it.

Rule one: do not change URLs unless you have to

A hosting migration, done correctly, changes where a site's files and database live — not the URLs a visitor or a search engine sees. If the domain stays the same and the URL structure stays the same, there is nothing for a search engine to re-evaluate; the same address simply now resolves to a faster or more reliable server. This is the outcome to aim for whenever a migration does not also involve a deliberate redesign or restructure.

If a URL structure change is genuinely part of the plan — a new CMS with a different permalink format, for instance — treat that as a separate, much higher-risk project layered on top of the hosting move, and give it the redirect mapping described below.

Test on the new server before DNS ever changes

Load the site from the new hosting account using a hosts file entry or a temporary preview URL while the domain's DNS still points at the old server. This lets you find broken pages, missing redirects, or configuration problems while the live site is still being served from the old, working environment — meaning nothing a visitor or a crawler sees is affected while you find and fix them.

Check for a noindex tag on the new environment specifically

New environments and staging copies are very often configured to keep search engines out during testing — a sensible precaution that becomes a serious mistake if it is still active after the domain is pointed at it. Before switching DNS, view the source of the new environment's homepage and confirm no noindex meta tag or X-Robots-Tag header is present. This single leftover setting is one of the more common causes of a site losing its entire index after a migration that was otherwise executed perfectly.

If any URLs are changing, map every one of them

Build a spreadsheet: old URL, new URL, one row per page. Every old address needs a 301 redirect to its closest genuine equivalent on the new structure — not a blanket redirect to the homepage, which passes far less value and gives visitors a worse landing experience. See 301 vs 302 redirects if you are unsure which status code to use; for a migration, it is almost always a 301.

Switch DNS deliberately, not casually

Lower the TTL on your domain's DNS records a day or so before the planned cutover, so the change itself completes in minutes rather than spreading over the better part of a day once you make it. Keep the old hosting account active and untouched for at least a week after cutover — DNS changes do not reach every resolver instantly, and a visitor or crawler occasionally reaching the old server during that window should still find a working site rather than an error or a cancelled account.

After cutover: watch, do not assume

  • Resubmit the sitemap if its location or contents changed, and confirm in Search Console that it was read without errors.
  • Watch the Coverage report daily for the first week, then weekly for the following month, for any spike in crawl errors, server errors, or newly excluded pages.
  • Spot-check a sample of redirected URLs directly rather than assuming the whole map worked because a handful of pages you tested by hand were fine.
  • Check Analytics for a traffic drop that maps to specific pages rather than the whole site, which usually points at one broken template or redirect rule rather than a sitewide problem.

None of this guarantees traffic holds perfectly steady through a migration — search visibility moves for reasons outside any single migration too, and short-term noise is normal. What this checklist does is remove the self-inflicted causes, which are the ones actually within your control and the ones that account for the great majority of migrations that do lose traffic.

Frequently asked questions

Does changing hosting companies affect my rankings on its own?

No. Search engines rank URLs and content, not the infrastructure behind them. A hosting migration that leaves every URL, every page's content, and the site's speed and uptime unchanged or improved should be invisible to rankings. The risk is entirely in what can go wrong during the move, not in the act of moving itself.

How long should I monitor Search Console after a migration?

At least a few weeks. Crawl errors from a botched redirect or a missed page do not always appear in the first day or two — it depends on how quickly Google recrawls the affected URLs. A sustained check across the following month catches problems a single post-migration glance would miss.

Related reading