
Yes, you can move a website to a new host or the cloud without downtime. Back up the site off the old host, build a working copy on the new one, test it under your real domain from your own computer, lower your DNS TTLs, then switch the records. Visitors see the old site until the new one is proven, and you can switch back in minutes.
We moved our own site, shiptronix.com, from an older static host to Cloudflare, along with the DNS and a set of old domain redirects that sat on a third-party redirect service. Below is the order we run it in, for ourselves and for clients.
Can you really move a website without downtime?
For most business sites, yes. The trick is that you never take the old site down to build the new one. You stand up the new hosting next to the old, get it fully working, and only then point the domain at it.
Until that last step, the public sees the old site. After it, they see the new one. If something goes wrong, you point the domain back.
The honest exception is a site that takes orders, bookings or logins. Those need a plan for data that changes during the move. More on that below.
A migration has three phases:
- Prepare: back up, inventory what exists today and decide what the new setup looks like.
- Build and test: get the site running on the new host and test it properly.
- Cut over: change DNS, watch closely, and keep the old host alive until traffic has fully moved.
What if your current host keeps going down?
Get a copy of the site off that host before you do anything else. A failing host is the worst place to keep your only backup.
Download the files and export the database if there is one. Store both somewhere you control, then confirm you can actually open them.
If you cannot get in at all, you are not stuck. A public site can be rebuilt from the outside in by copying every page, image and file the way a visitor sees them. We wrote that process up in our guide to migrating WordPress without a login.
Our take: do not wait for the next outage to start. The move takes the same effort either way, and it is much calmer when the old site is still up.
Phase 1: What are you actually moving?
Write down everything the current site depends on before touching anything.
- Pages and URLs. Export a full list from your sitemap, analytics and Search Console. Every URL with traffic or inbound links needs to exist on the new site or redirect to its replacement.
- Forms. Many older sites rely on a host-provided form handler or a PHP mail script that will not exist on the new host.
- Redirects. Check the control panel, an .htaccess file, a plugin, or a separate redirect service.
- Other domains. Many businesses own several domains that point at the main site.
- Tracking and scripts. Analytics, tag manager, ad pixels, chat widgets and verification files.
- Email. If your mailboxes live with the same host, they are a separate move with their own records. Do not cancel anything until mail has moved.
- DNS. Who hosts it, and what records exist besides the website? Our guide to DNS migration to Cloudflare covers this part in detail.
Phase 2: How do you build and test before switching?
Get the new site running on a temporary address first. Most modern hosts give you one. On Cloudflare we run a separate staging Worker for this.
Keep staging out of search engines. Our staging Worker sends an X-Robots-Tag: noindex header on every response until launch. Whatever you use, make sure it is removed from production.
How do you preview the new site under your real domain?
Point your own computer at the new host with a hosts file entry, while everyone else still sees the old site. Add one line with the new server's IP address and your domain:
203.0.113.10 example.com www.example.com
On a Mac the file is /etc/hosts. On Windows it is C:\Windows\System32\drivers\etc\hosts, edited as an administrator. Remove the line when you finish testing.
This only works for hosts that serve your site on a fixed IP address. Some cloud platforms, Cloudflare Workers among them, route by domain and need the domain attached first, so you test on the platform's preview address instead.
What should you test?
Test like a visitor, not like a developer. The short list we run on every move:
- Every page in the URL inventory returns a 200 or a single 301 to its replacement
- Every form submits and the message arrives where it should
- Checkout, booking or login works end to end with a test transaction
- Analytics and tag manager fire on the new host
- Images, downloads and PDFs load, and the site renders on a phone
- Page titles, meta descriptions and canonical tags carried over
What about sites that take orders, bookings or logins?
Anything visitors write to the site, like orders, bookings, signups or uploads, can change between your copy and the switch. Never leave two copies of the site both taking orders.
| Site type | How we cut over |
|---|---|
| Static or rarely edited | Freeze edits, copy final changes, switch DNS |
| Database site where a short pause is fine | Put the old site in maintenance mode, export the database, import it to the new host, then switch DNS |
| Store or app that cannot pause | Plan database replication or a managed migration with the platform. This is the case for specialist help |
For most small and mid-sized businesses, the middle row is the right call. A 15 minute maintenance window at 6 a.m. on a Sunday is a fair trade for a clean, consistent copy.
Phase 3: How do you prepare DNS for a fast switch?
Lower the TTL a day or two ahead. The cutover is a DNS change, and the record's TTL (time to live) sets how long resolvers can cache the old answer.
Drop the TTL on the records you plan to change to something short, such as 300 seconds (five minutes), as Cloudflare's TTL documentation describes. Then wait at least as long as the old TTL so caches pick up the shorter value.
If the move also changes nameservers, that is a separate and slower change. Our take: move the DNS provider first, let it settle, then switch the website as a second step.
How do you cut over, and what do you watch?
Make the DNS change during a quiet period and stay at the keyboard for the next hour.
- Update the A, AAAA or CNAME records for the root domain and www.
- Confirm the new host has issued a valid SSL certificate for both. Some hosts cannot issue one until DNS points at them, so check immediately.
- Load the site from a phone off Wi-Fi to see the change from outside your office.
- Submit each form once more on the live domain.
- Watch for 404 errors over the next few days and add redirects for anything you missed.
- In Search Console, submit the sitemap and watch the page indexing report.
Do not cancel the old host yet. Keep it running and unchanged for at least a couple of weeks. It is your rollback path.
One caution on rollback: once new orders or signups land on the new host, pointing DNS back would strand them. Fix forward unless the new site is truly broken.
How should you handle redirects and old domains?
Same domain and same URLs means Google treats the move as a hosting change, covered in its guide to changing hosting without URL changes. If URLs change, use server-side permanent redirects from each old URL straight to its final destination, with no chains, and keep them for at least a year.
In our own move, we replaced a third-party redirect service with redirect rules in Cloudflare, so every domain now lives in one place.
What usually goes wrong in a hosting migration?
The problems we see most are not exotic:
- Email stops because mail records were not recreated, or the old host was cancelled with mailboxes on it.
- A contact form silently stops delivering because it depended on the old host's mail function.
- The staging noindex header ships to production and the site drops out of search.
- Old URLs return 404 because nobody built redirects.
- Verification records for Search Console or Microsoft 365 were not copied, and a service quietly loses verification.
Every one of these is preventable with the Phase 1 inventory and the test list. Our website migration checklist turns this into a printable list.
When should you bring in help?
A simple brochure site is a move most teams can handle with the plan above. Get help when the site takes orders or bookings, the domain also carries business email, several domains are in play, or nobody on staff knows how the current setup was built.
That is the work our website hosting and migration service covers, from backup and inventory through cutover and the follow-up week.
Frequently asked questions
Can I move my website to the cloud without downtime?
Yes, for most business sites. Build the new copy in parallel, test it under your real domain with a hosts file entry, lower DNS TTLs a day ahead, then switch the records. Sites that take orders or bookings may need a short maintenance window so no data is lost between the final copy and the switch.
How long does a website hosting migration take?
For a small business site, build and test is usually days, not weeks, and the cutover takes minutes once TTLs are lowered. Larger sites take longer because of the inventory and testing, which is where the time should go.
Will moving hosts hurt my search rankings?
A host change on the same domain with the same URLs is usually invisible to search engines. Rankings are at risk when URLs change without redirects, when a staging noindex rule reaches production, or when the site is slower or broken after the move.
What TTL should I set before a migration?
300 seconds on the records you will change is a common choice. Lower it at least one full old-TTL period before the cutover. Raise it again once the new setup is stable.
Should I cancel my old hosting right after the switch?
No. Keep the old host running for at least a couple of weeks as your rollback path. Cancel only after traffic, forms and email have been confirmed on the new setup, and after you have saved a final backup.
