Guide
How to Switch Web Hosts Without Downtime (2026): A WordPress Checklist
By Võ Nhật Quốc KhánhUpdated Dec 2, 2026Independent research — not hands-on tested
PerkLantern may earn a commission when you buy through links on this page, at no extra cost to you. How we make money
Short answer: a host move only causes downtime if you switch DNS before the new server is ready. Do it in this order: lower your DNS TTL a day ahead, back up, copy files and database to the new host, test it there, freeze changes for the final copy, switch DNS, and keep the old host running for a few days. Visitors never see a gap.
Step 1: Lower your DNS TTL (a day or two before)
Cloudflare's DNS docs explain that TTL "controls how long each record is cached and — as a result — how long it takes for record updates to reach your end users." Longer TTLs speed up lookups, "but a longer TTL also means that updates to your records take longer to go into effect."
So a day or two before the move, set the TTL on your site's A or CNAME records to something short, such as 300 seconds. On Cloudflare, proxied records already use 300 seconds, and DNS-only records can go as low as 60 seconds. Wait for the old TTL to expire before switching.
Step 2: Back up everything
WordPress's handbook says to "begin by backing up your WordPress directory, images, plugins, and other files on your site as well as the database." Our WordPress backup guide covers how.
Step 3: Copy the site to the new host
If your domain stays the same, the handbook is reassuring: "if database and URL remain the same, you can move by just copying your files and database."
- Upload the files (especially
wp-content/) to the new server. - Create a database on the new host and import your export.
- "Edit wp-config.php to have the correct values" for the new database name, user and password.
Many hosts do this for you — Cloudways, for example, migrates your first site free and offers a WordPress migration plugin (see moving WordPress to Cloudways).
Step 4: Test before you switch DNS
Check the new copy before any visitor sees it:
- use the temporary URL your new host provides, or
- point your own computer at the new server with a hosts-file entry, so you see the new site on your real domain while everyone else still sees the old one.
Click through key pages, log in, submit a form, and for a store, run a test order. Check PHP versions match what your plugins need (see WordPress hosting requirements).
Step 5: Freeze, final sync, switch
- Freeze changes on the old site — no new posts, and for stores, pause orders or use maintenance mode for a few minutes.
- Re-export and import the database if anything changed since your first copy.
- Update your DNS A or CNAME records to the new server's address.
With a short TTL, most visitors move to the new server within minutes. Some networks and devices cache longer — the docs note "your local DNS cache may take longer to update" — which is why the next step matters.
Step 6: Keep the old host for a few days
Don't cancel the old plan on move day. Keep it running (unchanged) for several days while stragglers' caches expire, then cancel. The handbook's advice when shutting down an old site applies: export the database "but keep the old one just in case."
If your domain is changing too
Changing the domain adds one step: update the site URLs. The handbook warns that a raw search-and-replace across the database "can cause issues with data serialization," and recommends tools like the Better Search Replace plugin or WP-CLI:
wp search-replace 'old-domain.com' 'new-domain.com' --skip-columns=guid
Never change the GUID column — the handbook says not to "under any circumstances."
Move-day checklist
- DNS TTL lowered at least a day earlier
- Full backup (files + database) stored off both hosts
- Site copied,
wp-config.phpupdated, tested on the new server - Changes frozen, final database sync done
- DNS switched; old host kept running for several days
Our take
Zero-downtime moves are about order, not tools: lower TTL, copy, test, then switch — and don't cancel the old host too soon. If you'd rather not do it yourself, pick a host that migrates your site for you.
Based on WordPress's Advanced Administration Handbook and Cloudflare's DNS documentation. PerkLantern is a Cloudways affiliate and may earn a commission if you sign up through our links, at no extra cost to you.
Sources
All accessed December 2, 2026.
- WordPress Advanced Administration Handbook: Moving WordPress (copying files and database, wp-config.php, URL changes, serialization and GUID warnings, WP-CLI)
- Cloudflare: Time to Live (TTL) (what TTL controls, default and minimum values)
- Cloudways: Free website migration (free first-site migration, migrator plugin)
Frequently asked questions
Will my website go down when I change hosts?
It doesn't have to. If you copy the site to the new host, test it there, and only then point your DNS records at the new server, visitors keep reaching the old copy until their DNS cache updates. Keeping the old host running for a few days covers the stragglers.
What is DNS TTL and why lower it before moving?
TTL (time to live) controls how long DNS records are cached, and therefore how long it takes for record updates to reach users. Lowering it a day or two before the move — for example to 300 seconds — means the switch to your new server's IP address takes effect faster.
Do I need to change URLs in the database when moving hosts?
Not if the domain stays the same. WordPress's handbook says that if the database and URL remain the same, you can move by copying your files and database. You only need a search-and-replace if the domain or URL changes, and then you should use a tool that handles serialized data and skip the GUID column.
How do I stop new orders landing on the old server during the move?
For a store or membership site, do the final copy in a quiet period and pause orders or put the site in maintenance mode for those minutes, so nothing is written to the old database after you copy it.