Save 20% on your first hosting bill — use code HOSTING20 Claim now →
Live Bulletproof domains & hosting · Pay with crypto or card Bulletproof domains & hosting
How to Migrate Your Website to a New Host With Zero Downtime
How to Migrate Your Website to a New Host With Zero Downtime — Migration guide on LaunchPad Host

How to Migrate Your Website to a New Host With Zero Downtime

LH
By LaunchPad Host Team · Hosting & Infrastructure
Published · 6 min read

Key Takeaways

  • Zero downtime comes from running the old and new hosts in parallel and only switching DNS after the new site is verified, never from rushing the move.
  • Lower your DNS TTL to 300 seconds at least 48 hours before cutover so the internet picks up the new IP within minutes, not days.
  • Copy files first, then sync the database last, right before cutover, to avoid losing orders, comments, or form submissions during the gap.
  • Test the new host using a hosts-file override or staging URL before any public DNS change, so real visitors never see a half-finished site.
  • Keep the old host live for at least 72 hours after cutover as a rollback safety net while DNS fully propagates worldwide.

What does zero-downtime website migration actually mean?

Zero-downtime migration means moving your site to a new host so that visitors never hit an error, a half-loaded page, or a maintenance screen. You achieve it by keeping the old server fully live while you build and verify an identical copy on the new server, then switching traffic over only once the copy is proven. The move is invisible because nothing breaks at the moment of cutover.

The single biggest myth is that migration requires taking your site offline. It does not. Downtime happens when people delete the old site before DNS has finished pointing at the new one, or when they sync the database hours before they actually switch traffic and lose everything submitted in between. Both are avoidable with sequencing, not luck.

The core principle is parallel running: for a short window, two identical copies of your site exist on two hosts at once. Visitors are gradually, automatically routed from the old to the new as DNS propagates. Because both work, it does not matter which one a given visitor lands on during that window. Get the order of operations right and the worst case is simply that you delete the old copy a few days later.

How do you prepare before touching anything?

Preparation is where zero downtime is won or lost. Rushing the prep is the most common cause of a migration that technically works but loses data or breaks email. Spend the time here.

First, take a complete inventory of what your site actually depends on. Most people remember the files and the database but forget the quiet dependencies that cause outages hours later.

Second, and most important for timing, lower your DNS TTL. The Time To Live tells resolvers worldwide how long to cache your DNS records. If it is set to the common default of 3600 or 86400 seconds, a visitor's resolver may keep pointing at your old host for hours after you switch. Drop the TTL on your A and CNAME records to 300 seconds (five minutes) at least 48 hours before migration day. This single change is what turns a slow, scary cutover into a near-instant one.

What is the step-by-step zero-downtime cutover process?

With prep done, the migration itself is a disciplined sequence. Follow it in order and the live site never blinks.

  1. Provision the new host and recreate the environment: same PHP/Node version, same database engine, same web server (Apache, Nginx, or LiteSpeed).
  2. Copy all files to the new server. This can happen days early since static files rarely change much.
  3. Import a recent database copy and get the site fully functional on the new host, reachable by its raw IP or a temporary subdomain.
  4. Test on the new host privately using a hosts-file override (see the next section) so you see exactly what real visitors will see, before any public change.
  5. Freeze and final-sync the database right before cutover. For dynamic sites with orders or comments, briefly pause new writes or run a final incremental sync so nothing submitted in the gap is lost.
  6. Switch the DNS A record to the new host's IP. Because TTL is already at 300 seconds, propagation to most visitors happens within minutes.
  7. Keep the old host running untouched for at least 72 hours. Stragglers on cached DNS still land on a working site, and you retain an instant rollback path.
  8. Verify, then decommission the old host only after logs confirm traffic has fully moved.

The non-obvious win is in steps five and seven. Most guides tell you to copy the database once and flip DNS. But if your site takes orders, the half-hour between your database dump and your DNS switch is a black hole where real transactions vanish. Doing the database last, and keeping the old box alive after, closes that hole completely.

Tired of slow, overcrowded web hosting?

LaunchPad Host runs on NVMe SSDs + LiteSpeed with free migration, free SSL, daily backups, and crypto payments. 30-day money-back guarantee.

See Hosting Plans

How do you test the new host before changing DNS?

Never let the public be your test. The professional move is to point only your own computer at the new server while the rest of the world still sees the old one. You do this by editing your local hosts file, which overrides DNS for your machine alone.

On Windows the file lives at C:\Windows\System32\drivers\etc\hosts; on macOS and Linux it is /etc/hosts. Add a line with the new server's IP and your domain, save, and your browser will load the new host using the real domain name, complete with correct internal links, while every other visitor stays on the old server.

If you can browse, log in, checkout, and submit a form on the new host using your real domain name, all while the public still sees the old site, your cutover is ready and the actual DNS switch becomes a non-event.

Walk through the things that commonly break after a move: mixed-content HTTPS warnings, hardcoded absolute URLs pointing back to the old server, file permission errors on uploads, email sending, and any third-party API that whitelists your server IP. Fixing these in private is the entire point. When you finally change the public DNS record, you are repeating an action you have already proven works.

What does migration look like for offshore or privacy-focused moves?

Migrating to an offshore or privacy-forward host follows the same zero-downtime mechanics, but a few extra factors matter. People move to offshore jurisdictions for legitimate reasons: stronger data-protection law, free-speech resilience, distance from a single legal jurisdiction, and crypto-friendly billing. The technical process is identical; the diligence is broader.

Migration factorStandard moveOffshore / privacy move
Acceptable Use PolicyRarely reviewedRead it first; a clear, lawful AUP protects you and signals a reputable host
Data locationOften default regionChoose jurisdiction deliberately for law and latency to your audience
Latency impactUsually negligibleVerify TTFB to your real visitors; pair with a CDN if servers are far
PaymentCard onlyCrypto and privacy-respecting billing often available
WHOIS / domain privacyOptionalWHOIS privacy and at-arms-length domain handling commonly included

Keep everything strictly legitimate. Offshore and privacy hosting is a lawful choice for protecting data, speech, and uptime — it is not a shield for illegal content, and any reputable provider's AUP makes that boundary explicit. A host that is vague about acceptable use is a red flag, not a feature.

This is where a provider built for the use case earns its keep. LaunchPad Host offers offshore and privacy-forward hosting with crypto-friendly billing and domains under one roof, so the new environment, certificate, and domain records you need for a clean cutover come from a single place rather than three vendors you have to coordinate. The zero-downtime steps above stay exactly the same; you simply have fewer moving parts to line up on migration day.

How do you confirm the migration succeeded?

Cutover is not the finish line; verification is. A migration that looks fine in your browser can still be quietly broken for search engines, email, or a subset of global visitors. Check deliberately.

Confirm DNS has propagated by checking your domain from multiple global locations, not just your own machine, since you may still be reading your edited hosts file. Watch your new server's access logs to confirm real traffic is arriving, and watch the old server's logs trending toward zero. Test email end to end, send and receive, because MX and SPF/DKIM mistakes are the most common post-migration outage and they fail silently.

Only once logs show traffic fully shifted and every check passes should you decommission the old host. Take one final backup of the old server before you cancel it. Hosting is cheap; the only copy of your data that exists during a botched migration is priceless.

Frequently Asked Questions

The hands-on work for a typical small to medium site is a few hours to set up and copy, but the full process spans two to four days because of the deliberate waiting periods. You lower DNS TTL about 48 hours ahead, do the cutover in minutes, then keep the old host running for at least 72 hours as a safety net before decommissioning. The waiting is what guarantees zero downtime, so it should not be rushed.

Not if you sequence it correctly. Data loss happens when the database is copied hours before the DNS switch, leaving a gap where new orders or form submissions land only on the old server. Avoid this by syncing the database last, immediately before cutover, and by keeping the old host live afterward so any stragglers are captured. For busy stores, a brief write-freeze or a final incremental sync closes the gap entirely.

Yes, and it is the most important timing step. TTL controls how long resolvers worldwide cache your DNS records. If it stays at a default like 3600 or 86400 seconds, some visitors keep hitting your old host for hours after you switch. Dropping it to 300 seconds at least 48 hours before cutover means the internet picks up your new server's IP within minutes, turning the switch into a near-instant event.

Yes. The technical steps are identical to any migration: parallel-run both hosts, test privately with a hosts-file override, sync the database last, then switch DNS. The extra diligence for an offshore or privacy-focused move is reading the acceptable-use policy, choosing the data jurisdiction deliberately, and checking latency to your real audience. Providers like LaunchPad Host bundle offshore hosting, domains, and crypto-friendly billing so there are fewer vendors to coordinate on cutover day.

Tags: website migration zero downtime dns ttl web hosting cutover database sync offshore hosting wordpress migration

Related tools, articles & authoritative sources

Hand-picked internal pages and external references from sources Google itself considers authoritative on this topic.

Related free tools

  • DNS Propagation Checker Check DNS propagation across 12 global resolvers in real time.
  • DNS History Checker Historical DNS, SSL certificates, subdomains & Wayback snapshots for any domain.
  • WHOIS Lookup Registrar, creation date, expiry, nameservers, DNSSEC status — for any domain.

Offshore & privacy hosting