Before you begin: Sites with orders or form data need a final sync and a cutover window. Don't delete old files, the database or email service until the new site has passed verification.
After a site has been running for a while, you may need to migrate because of hosting price, performance, server location or service quality. Most migration failures are not about being unable to install WordPress on the new host; they come from overlooking the relationship between the database, files, domain, email and ongoing updates on the old site.
1. Take inventory before migrating
What needs preserving is more than posts: the theme, plugins, uploaded images, database, site configuration and any custom code.
If the site has WooCommerce orders, user submissions or membership features, data created during the migration deserves special attention. Plan a clear data freeze or synchronization scheme first.
2. Back up, then verify the backup
Keep at least two independent backups: WordPress site files and the full database. Ideally the backup should not live only on the old host.
After backing up, try restoring once in an isolated test environment to confirm the archive is not empty or corrupted.
3. Prepare the new hosting environment
Confirm that PHP and database versions, required extensions, disk space and domain configuration meet the site's needs. Deploy the WordPress files and database on the new host, adjusting database connection settings if necessary.
Don't change the domain's NS records right away; keeping testing separate from the live cutover is safer.
4. Test the site before switching
Use a temporary access URL from the host, a staging domain or local hosts mapping to verify the new site without affecting public access.
Focus on the homepage, article pages, images, permalinks, admin login, forms, search, multilingual setup, WooCommerce payments and email.
5. Handle URLs and serialized data
If only the server changes and the domain stays the same, you usually don't need to rewrite internal URLs on a large scale.
If the domain also changes, the WordPress database may contain serialized data. Don't run a plain text replacement over the whole database; prefer a safe migration tool that understands WordPress data structures, and back up first.
6. Switch DNS and HTTPS
Make sure the new host has a valid certificate, then adjust A, AAAA, CNAME or NS records as the provider requires.
After cutover, some visitors may still reach the old site while DNS caches update. Ecommerce sites in particular need a data consistency plan so orders are not written to both environments.
7. What to check after migration?
- The homepage and main landing pages load.
- The admin area is accessible and permalinks produce no 404s.
- Images and attachments load normally.
- Forms and transaction notifications are delivered.
- HTTPS and primary-domain redirects are correct.
- Google Search Console and sitemap status look normal.
- Backup jobs are enabled on the new host.
8. When should you shut down the old host?
Don't delete the old site on the same day you change DNS. Keep a reasonable observation and rollback window based on your business, cache propagation and monitoring results.
If something goes wrong after migration, identify whether DNS, SSL, the server or the database is at fault before deciding to roll back, so you don't accidentally overwrite updated data.
Summary
A safe migration comes down to complete backups, testing in advance, a planned cutover and verification of orders and email. For business-critical sites, spending time on a rollback plan before migrating is far more effective than improvising after a failure.
Interface and operation check

FAQ
Can I delete the old host as soon as the new site opens?
Verify images, admin access, forms and business data first, and confirm the final sync and domain cutover are done. Then handle the old service according to your rollback window.
Can WordPress Tools export replace a full migration?
No. The content XML does not include complete program files and the database. A full migration needs a method covering all required data and configuration.
Further reading
- WordPress security and backups: a beginner's checklist
- How to choose WordPress hosting in 2026: a beginner's guide
- Cloudflare CDN setup guide: connecting a WordPress site
Official sources and references
Sources last checked on October 5, 2026. Software interfaces and service terms can change — always compare against the version you are actually using.