HOSTING · PLAYBOOK

Move your website without downtime

A step-by-step plan for moving your website to a new host with no downtime: backups, migration options, testing with your hosts file, email, stores, SEO and troubleshooting.

KEY TAKEAWAYS✓Take a full backup of files and database before you touch anything.✓Copy the site with your new host’s free migration, a plugin or manually, and test it before switching.✓Lower your DNS TTL to 300 seconds a day before the move so the switch is fast.✓Move email and its DNS records too, or email will stop.✓Keep URLs the same and keep the old hosting for at least a week.

The migration plan

ZERO-DOWNTIME MIGRATIONPlan 1–2 days
  1. TRIGGERFull backup of files and database
  2. STEPCopy site to new hostPlugin, host tool or free migration
  3. STEPTest on a temporary URLForms, checkout, logins
  4. WAITLower DNS TTL to 5 minutes, wait 24 hours
  5. STEPPoint DNS to the new host
  6. CONDITIONEverything working on the new host?Yes → Cancel old host after 7 daysNo → Point DNS back
  7. GOALMigrated with no downtime

Before you start

PRE-MIGRATION CHECKLISTInteractive · saves on this device
0 of 7 done · 65 min left
Access and backups
Plan
Tick each task as you finish it.

Step by step: migrating a WordPress site

  1. 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.
  2. 02Or use a migration pluginMigrate Guru for large sites, Duplicator for full control, All-in-One WP Migration for small sites.
  3. 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.
  4. 04Install SSL on the new hostMost hosts can issue the certificate before DNS points to them, or immediately after.
  5. 05Test before switchingUse the host’s temporary URL or edit your computer’s hosts file so only you see the new server.
  6. 06Switch DNSChange nameservers or the A record to the new host.
  7. 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.

TESTCHECK
PagesHomepage, key pages and blog posts load correctly
FormsContact and quote forms send to the right inbox
LoginsAdmin and customer accounts work
StoreAdd to cart, checkout and payment in test mode
Images and linksNo broken images or links to the old address
SpeedRun PageSpeed Insights on the new server

Don’t forget email

THE DNS CHANGE ON SWITCH DAY
yourbusiness.comDNS records
TypeNameValueTTL
A@203.0.113.10198.51.100.24300
CNAMEwwwyourbusiness.com300
MX@mail.provider.com (priority 10)3600
TXT@v=spf1 include:provider.com ~all3600
  1. Day beforeLower TTL to 300 seconds
  2. Move dayCopy the site and test it via hosts file
  3. SwitchPoint the A record at the new server
  4. Week afterKeep the old host, then cancel
Only the A record changes; email (MX) and SPF stay as they are. Example IP addresses from the documentation range.

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

HOSTFREE MIGRATIONNOTES
HostingerYesAutomatic WordPress migration
SiteGroundPluginFree WordPress migrator plugin
CloudwaysYesFree migration plugin; paid expert migration available
KinstaYes, by expertsFree migrations included on plans
BluehostVaries by planCheck current offer

Troubleshooting

PROBLEMLIKELY CAUSEFIX
Site still shows the old hostDNS not updated yet or cachedWait, flush DNS cache, check with a DNS lookup tool
“Error establishing a database connection”Wrong database detailsCheck wp-config.php
Mixed content or SSL warningsOld http links or no certificateIssue SSL, force HTTPS, search-and-replace URLs
Emails stoppedMX records not copiedAdd MX, SPF, DKIM and DMARC to the new DNS
Broken imagesFiles missing or wrong pathsRe-copy the uploads folder

Common mistakes to avoid

✕ Cancelling the old host before testingKeep it for at least a week.
✕ Forgetting emailMove mailboxes and DNS records first.
✕ Changing domain and host on the same dayDo one at a time.
✕ Leaving “discourage search engines” onCheck Settings → Reading after moving.

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.

More in Hosting