The migration plan
- TRIGGERFull backup of files and database
- STEPCopy site to new hostPlugin, host tool or free migration
- STEPTest on a temporary URLForms, checkout, logins
- WAITLower DNS TTL to 5 minutes, wait 24 hours
- STEPPoint DNS to the new host
- CONDITIONEverything working on the new host?Yes → Cancel old host after 7 daysNo → Point DNS back
- GOALMigrated with no downtime
Before you start
Step by step: migrating a WordPress site
- 01Ask the new host to migrate itHostinger, SiteGround, Cloudways, Kinsta and many others move WordPress sites for free, by an expert or with their own plugin.
- 02Or use a migration pluginMigrate Guru for large sites, Duplicator for full control, All-in-One WP Migration for small sites.
- 03Or migrate manuallyCopy files by SFTP, export the database, import it on the new host, update wp-config.php with the new database details, and run a search-and-replace if the URL changed.
- 04Install SSL on the new hostMost hosts can issue the certificate before DNS points to them, or immediately after.
- 05Test before switchingUse the host’s temporary URL or edit your computer’s hosts file so only you see the new server.
- 06Switch DNSChange nameservers or the A record to the new host.
- 07Check and keep the old hostTest everything, then cancel the old hosting after a week.
How to test before you switch DNS
Your computer’s hosts file lets you preview the site on the new server while everyone else still sees the old one. Add a line with the new server’s IP address and your domain (for example 203.0.113.10 yourbusiness.com and www.yourbusiness.com). On Windows the file is at C:\Windows\System32\drivers\etc\hosts; on Mac and Linux it’s /etc/hosts. Remove the line after testing.
| TEST | CHECK |
|---|---|
| Pages | Homepage, key pages and blog posts load correctly |
| Forms | Contact and quote forms send to the right inbox |
| Logins | Admin and customer accounts work |
| Store | Add to cart, checkout and payment in test mode |
| Images and links | No broken images or links to the old address |
| Speed | Run PageSpeed Insights on the new server |
Don’t forget email
| Type | Name | Value | TTL |
|---|---|---|---|
| A | @ | 300 | |
| CNAME | www | yourbusiness.com | 300 |
| MX | @ | mail.provider.com (priority 10) | 3600 |
| TXT | @ | v=spf1 include:provider.com ~all | 3600 |
- Day beforeLower TTL to 300 seconds
- Move dayCopy the site and test it via hosts file
- SwitchPoint the A record at the new server
- Week afterKeep the old host, then cancel
If your email is hosted with your old web host, changing nameservers can stop it. Before switching, either set up the same mailboxes on the new host or move email to Google Workspace or Microsoft 365, and copy MX, SPF, DKIM and DMARC records to the new DNS. Migrate old messages with the provider’s import tool or IMAP.
Moving an online store
- •Migrate at your quietest time
- •Put the store in maintenance mode or pause orders briefly during the final copy
- •Or copy twice: once to test, then a final database sync just before switching
- •Test checkout and payment webhooks (Stripe, PayPal) on the new server
- •Check order emails and stock levels after switching
Protect your SEO
- •Keep the same domain and URLs
- •Make sure the new site isn’t set to “discourage search engines” or blocked by robots.txt
- •Check Search Console for crawl errors in the week after
- •If you also change domain, add 301 redirects for every page and use Search Console’s Change of Address tool (do this as a separate project, not on the same day)
Hosts that migrate for you
| HOST | FREE MIGRATION | NOTES |
|---|---|---|
| Hostinger | Yes | Automatic WordPress migration |
| SiteGround | Plugin | Free WordPress migrator plugin |
| Cloudways | Yes | Free migration plugin; paid expert migration available |
| Kinsta | Yes, by experts | Free migrations included on plans |
| Bluehost | Varies by plan | Check current offer |
Troubleshooting
| PROBLEM | LIKELY CAUSE | FIX |
|---|---|---|
| Site still shows the old host | DNS not updated yet or cached | Wait, flush DNS cache, check with a DNS lookup tool |
| “Error establishing a database connection” | Wrong database details | Check wp-config.php |
| Mixed content or SSL warnings | Old http links or no certificate | Issue SSL, force HTTPS, search-and-replace URLs |
| Emails stopped | MX records not copied | Add MX, SPF, DKIM and DMARC to the new DNS |
| Broken images | Files missing or wrong paths | Re-copy the uploads folder |
Common mistakes to avoid
FAQ
Will my website go down when I change hosts?
Not if you copy and test on the new host first, then switch DNS with a low TTL.
How long does a website migration take?
A few hours of work for most small sites, plus up to 48 hours for DNS to update everywhere.
How long does DNS take to update?
Usually minutes to a few hours, and up to 48 hours in rare cases.
Do web hosts migrate websites for free?
Many do, including Hostinger, SiteGround, Cloudways and Kinsta for WordPress sites.
Will moving hosts affect my SEO?
Not if you keep the same domain and URLs and the new site stays crawlable.
What happens to my email when I change hosts?
If email is with your old host, it can stop when DNS changes; move mailboxes and copy MX and authentication records first.

















