Blog / Web management /
Hosting migrations without losing rankings
“We’re moving to a new host. Will it hurt our SEO?”
Done properly, a hosting move is one of the least risky migrations there is. The URLs stay the same. The content stays the same. Google mostly doesn’t care which server your site lives on, as long as it can reach it and it’s quick.
The rankings drops people blame on “changing hosts” almost always come from something else that happened at the same time: a few hours of downtime, a broken SSL certificate, noindex left on from staging, email lost because someone forgot the MX records, or a redesign squeezed into the same weekend.
Hosting moves are part of the job when you look after client sites, and the checklist below is what I use to keep them boring. Boring is the goal.
The golden rule: change one thing
A hosting migration should change where the site lives. Nothing else.
Not the domain. Not the URLs. Not the theme. Not the CMS. If you also want a redesign, do it before or after, separately. Then if something moves in Search Console, you know why. (For the bigger kind of migration, where URLs do change, see planning SEO for a site migration.)
Before the move
1. Take a full backup
Files and database, stored somewhere that isn’t the old host or the new one. If the move goes wrong, this is your way back.
2. Record the baseline
So you can compare afterwards:
- Search Console: clicks and indexed pages over the last three months. Export the top pages.
- Speed: test the homepage and a couple of key pages in PageSpeed Insights.
- A crawl of the site, or at least a list of all URLs from the sitemap.
3. Copy every DNS record
This is the step that catches people. Before you touch DNS, write down every record currently in place: A, CNAME, MX, TXT, everything. Especially:
- MX records (email)
- TXT records for Search Console verification, SPF, DKIM and DMARC
If the new host or a new DNS provider is going to manage DNS, every one of these needs recreating there. Missing MX records is how a website move turns into “nobody’s received an email since Friday”.
4. Lower the TTL
TTL (time to live) is how long DNS answers are cached around the internet. A day or two before the move, lower it on the records you’ll change, to something like five minutes. When you switch, the change spreads quickly instead of over hours.
5. Check the new host matches what the site needs
PHP version, database version, memory limits, any server modules the site depends on. A site that ran on PHP 7.4 for years may have plugins that complain on PHP 8.
The move itself
6. Copy the site to the new host
Many hosts offer free migration, or a migration plugin does it. Either way, the site should be fully set up on the new server before any DNS changes.
7. Test it before anyone else sees it
You can preview the site on the new server without changing DNS, using a temporary URL from the host or by editing your computer’s hosts file to point the domain at the new IP address. Check:
- Pages load, images show, links work.
- Logging in works.
- Forms send, and checkout works on shops.
- No
noindex. If the host’s temporary copy set “Discourage search engines” in WordPress (Settings → Reading), switch it off. - SSL is installed and valid on the new server.
8. Freeze changes
From the moment you copy the database until DNS has switched, nobody publishes, edits or takes orders on the old site that won’t be on the new one. On a shop, pick a quiet time and keep this window short. Otherwise, orders or comments placed on the old server get lost.
9. Switch DNS
Point the A record (or nameservers) to the new host. With a low TTL, most visitors will reach the new server within minutes. Keep the old hosting account running for at least a week, in case anything was missed.
After the move
10. Check the live site again
Same checks as step 7, now on the real domain. Plus:
- HTTPS works on every version of the domain, and they all redirect to one.
- Email arrives and sends.
- Analytics is still recording.
11. Watch Search Console
For the next couple of weeks, check:
- Page indexing report for a rise in server errors or “not found” pages.
- Settings → Crawl stats for host status problems and changes in response time. A faster server often shows here as quicker average response times.
- Performance for clicks against your baseline.
Small fluctuations are normal. A steady drop isn’t, and usually points to something in the checklist that went wrong.
12. Raise the TTL again
Once everything’s settled, put the TTL back to a normal value.
The usual causes of lost rankings
If rankings did drop after a hosting move, check these first:
- Was the site down for hours, or returning errors to Googlebot?
- Is SSL valid on every version of the domain?
- Did
noindexor a staging robots.txt sneak onto the live site? - Is the new server much slower?
- Did anything else change: URLs, theme, content?
It’s nearly always one of those.
Related reading
- Planning SEO for a site migration
- Choosing a WordPress host for a content site
- DNS, SSL and Cloudflare: what site owners should know
- Robots.txt and noindex: when to use which
If a move is coming up, do step 3 today: copy every DNS record into a document. It takes ten minutes, and it’s the step most likely to save you from a very bad Monday.