Skip to content

Find a lower .io price anywhere and we’ll beat it, including on 1, 2 and 3-year registrations.

New: manage your hosting from Claude & ChatGPTNew: Spark, build a website by chatting
Globalhostia
Hosting guides

How to Migrate a WooCommerce Store Without Losing Orders

How to Migrate a WooCommerce Store Without Losing Orders
In this article8 sections
  1. Where lost orders actually come from
  2. Before you start: the pre-move checklist
  3. How to migrate a WooCommerce store step by step
  4. Maintenance mode and the DNS cutover
  5. After the cutover: reconcile orders and retire the old host
  6. Shop-specific pitfalls and how to spot them
  7. When to let someone else do the move
  8. Frequently asked questions

To migrate a WooCommerce store without losing orders, make sure only one copy of the shop can take orders at any moment, and that the final database copy is taken after the old checkout is closed. Everything else, from lowering DNS TTL to testing payments, supports that one rule. This guide gives you the sequence, a pre-move checklist and a way to reconcile orders afterwards.

Where lost orders actually come from

An order is data in your database, not a file on disk. Depending on your WooCommerce version and settings it sits in custom order tables or in the posts tables, but either way it lives in the database. If you copy the database at 10:00 and customers keep buying on the old server until the DNS change takes effect, those orders exist only on the old server.

There are three usual routes to a gap:

  • Orders placed after the export. The most common cause. The copy is a snapshot, and the old shop keeps trading after it.
  • Cached DNS. After you change DNS records, some visitors still reach the old server until resolver caches expire. Their orders land in the old database.
  • Payment notifications. A gateway tells your store a payment succeeded by calling a URL on your domain. If that call reaches the old server, the new database never learns the order was paid, and you get an order stuck on pending.

The WordPress developer handbook is clear that a typical site has two parts, files and database, and you need both to restore it fully. A migration that moves the files but copies the database early is the classic way to lose a day of sales. Source: WordPress Backups handbook.

Before you start: the pre-move checklist

Most of the risk is removed in the days before cutover. Work through this table first.

Task Why it matters When
Lower the TTL on your DNS records Shorter caching means visitors reach the new server sooner after the switch At least a week before, per Google's guidance
Take a full backup of database and files Your way back if the move goes wrong Before anything else, and again at cutover
Export your current DNS records, including MX and TXT Email and verification records can disappear if DNS moves and they aren't recreated Before touching DNS
Install the SSL certificate on the new host Checkout must not show browser warnings on day one Before cutover
List plugins, payment gateways and webhook URLs You'll test each one on the copy Before building the copy
Pick a quiet window Look at your order history by hour and choose the slowest stretch When you schedule

Google's documentation on changing hosting suggests lowering the TTL to a conservative low value, for example a few hours, at least a week ahead of the move. It also reminds you to carry over any Search Console verification file or meta tag. Source: Google Search Central: changing your hosting.

If your DNS records are managed at your current host, read how to point a domain or change nameservers before you decide anything. Moving nameservers moves every record with them.

How to migrate a WooCommerce store step by step

This is the build-and-test phase. Nothing here touches your live shop's traffic.

  1. Back up the old store. Database first, then files, and keep them together as one set. The WordPress handbook recommends this order and says to back up before a move to a new location. Store a copy somewhere other than the old server.
  2. Build the copy on the new host. Restore the files first, then import the database. If the database name, user or password differ on the new server, update wp-config.php to match, as the handbook notes. If you'd rather not do this by hand, our free website migration page explains how to request a migration, and the guide to moving a website to GlobalHostia covers the manual route.
  3. Make the copy safe. Block it from search with a noindex rule, as Google recommends for test sites. Switch payment gateways to test mode. Disable outgoing customer emails, and make sure scheduled tasks can't process renewals or send reminders. A staging copy with live keys can charge or email real customers.
  4. Test on a temporary hostname or a hosts-file override. That lets you see the new server while the public still sees the old one.
  5. Run a full shopper test. Place orders with every payment method, apply a coupon, check shipping and tax, create an account, reset a password, and confirm stock levels drop. Open the order emails. Refund the test orders.
  6. Confirm HTTPS. Install the certificate on the new server (how to install an SSL certificate) and check that no page loads mixed content.

If your store outgrows its current plan during the move, WordPress hosting is the plan type built for this kind of site.

Maintenance mode and the DNS cutover

This is the part that decides whether orders survive. You have two realistic approaches.

Approach How it works Suits
Freeze window Old checkout closes, final copy is taken, DNS changes, new shop opens Small and medium stores that can pause sales briefly
Live overlap Old shop keeps trading while DNS propagates, then you copy over late orders by hand Stores where a pause costs more than the manual work

The freeze window is simpler and easier to verify, so this sequence uses it.

Cutover sequence

  1. Switch the old store to maintenance mode. Use a maintenance plugin or your host's tool, and check it really blocks checkout, not just the front page. A page that returns a 503 status tells browsers and crawlers the downtime is temporary.
  2. Write down the last order number and its timestamp on the old store.
  3. Take the final database export, plus any uploads added since your first copy, such as new product images.
  4. Import it on the new server. Compare the order count and the newest order number with your note. They must match before you go further.
  5. Go live on the new copy. Enter live gateway keys, re-enable customer emails and remove any noindex tag or robots.txt block. Google specifically warns to remove temporary blocks before the move starts.
  6. Change DNS. If only the website is moving and email stays where it is, changing the A record is the narrower change. Moving nameservers is broader, so recreate MX and TXT records on the new DNS first. The article on nameservers vs A record explains the difference.
  7. Leave the old store in maintenance mode. Anyone still resolving the old address sees a holding page instead of placing an order into a database you've abandoned.

The pause lasts only as long as steps 3 to 5 take, plus whatever caching delay remains. Doing a dry run of the export and import beforehand will tell you how long your store actually takes.

After the cutover: reconcile orders and retire the old host

Don't cancel anything the same day. Check first.

  • Compare against your gateway. Look at successful payments in each gateway dashboard for the cutover period and match them to orders in the new store. A payment with no order, or an order stuck on pending, points to a notification that reached the wrong server.
  • Check the old orders list. Look for any order dated after your final export. Re-enter it on the new store or export and import it, then tell the customer if anything about the order status changed.
  • Place one real low-value order with the live gateway and refund it, to confirm the full path works.
  • Watch both servers. Google's guidance is to keep an eye on server logs for old and new hosting. Traffic on the old server should fall as DNS settles, and you can shut it down once it reaches zero. Use several public DNS checking tools to confirm different networks see the new address.
  • Expect a crawl dip. Google notes a temporary drop in Googlebot's crawl rate after a hosting change is normal, followed by recovery as long as it doesn't hit serious problems.
  • Keep the final backup of the old store for as long as you'd want a rollback option.

Also check that your Search Console verification still works, and that your webhook and callback URLs use your real domain and not the temporary test hostname.

Shop-specific pitfalls and how to spot them

Symptom Likely cause What to check
Recent orders missing on the new store Final export taken before checkout was closed Old store's order list, dated after the export
Paid orders stuck on pending Gateway notification hit the old server or a wrong URL Webhook settings in the gateway dashboard
Customers get duplicate emails or charges Test copy still had live keys or active scheduled tasks Gateway mode and scheduled actions on any staging copy
Redirect loops or mixed content Site address set to http, or certificate not yet active Site and WordPress address settings, certificate status
Search visibility drops A noindex tag or robots block was left on the new copy Page source and robots.txt on the live domain
Business email stops MX records weren't recreated after a nameserver change Your exported DNS records against the new zone

Subscriptions deserve extra care. Make sure only one copy of the site can process renewals, otherwise a renewal can run twice.

When to let someone else do the move

If your store has custom code, a large catalogue, subscriptions or steady round-the-clock orders, a rehearsed migration is cheaper than a bad one. Our team can handle the transfer through free website migration. Check that page for what's covered and how to request it, and share your cutover window and gateway list up front so the plan fits your trading pattern.

If you'd rather have the move handled for you, take a look at our free website migration service and send us your cutover window and payment setup.

Frequently asked questions

Do I really need maintenance mode to migrate a WooCommerce store?

Not technically, but without it any order placed between your final export and the DNS change exists only on the old server. If you skip it, plan to compare the old orders list against the new one afterwards and re-enter anything missing.

How long does the DNS change take to reach customers?

It depends on the TTL set on your records and on how resolvers cache them, so no single figure is reliable. Lowering the TTL ahead of time, as Google recommends, shortens the delay. Keep the old store in maintenance mode until traffic on it stops.

Can I test the new store on my real domain before switching?

You can point your own computer at the new server with a hosts-file entry, or use a temporary hostname. Keep the copy noindexed and in payment test mode while you test, then remove the noindex before the real move.

Will moving hosts hurt my search rankings?

A move that keeps your URLs the same is the simplest case. Google says a temporary dip in crawl rate after a host change is normal. Remove any leftover noindex or robots blocks and keep Search Console verification working. Nobody can promise rankings either way.

Should I change nameservers or just the A record?

Change the A record if only the website is moving. Change nameservers if you want the new host to manage all DNS, but recreate your MX, TXT and other records there first or email can stop working.

Plans that fit

Hand-picked for this article. Every plan comes with engineers on call around the clock.

Hostia Lite

Fast NVMe Storage and Real 24/7 Technical Support.

S$38.80/ year

≈ S$3.23/mo, billed yearly

Renews at S$38.80 / year · +VAT 5% where applicable

  • 2 GB of Space
  • 50 GB Bandwidth
  • 10 Email IDs
  • Not included: 1 Website
  • Not included: 10 Databases
Recommended

Hostia Lite-sg

Fast NVMe Storage and Real 24/7 Technical Support.

S$38.80/ year

≈ S$3.23/mo, billed yearly

Renews at S$38.80 / year · +VAT 5% where applicable

  • 2 GB of Space
  • 50 GB Bandwidth
  • 10 Email IDs
  • Not included: 1 Website
  • Not included: 10 Databases

Hostia Lite-usa

Fast NVMe Storage and Real 24/7 Technical Support.

S$38.80/ year

≈ S$3.23/mo, billed yearly

Renews at S$38.80 / year · +VAT 5% where applicable

  • 2 GB of Space
  • 50 GB Bandwidth
  • 10 Email IDs
  • Not included: 1 Website
  • Not included: 10 Databases

Hostia Ultra

Fast NVMe Storage and Real 24/7 Technical Support.

S$51.74/ year

≈ S$4.31/mo, billed yearly

Renews at S$51.74 / year · +VAT 5% where applicable

  • DISK
  • 5GB SSD
  • Bandwidth
  • 100GB Bandwidth
  • Email Accounts
  • unlimited Email
  • Domains
  • 5 Websites
Prices shown live from our billing system, in SGD.

What you get with GlobalHostia

  • 24/7 supportEngineers on call by phone, email, WhatsApp and ticket, at any hour.
  • Automatic setupYour service is set up automatically as soon as payment is confirmed.
  • Global datacentersHost close to your visitors in datacenters on several continents.