A WordPress migration is any move that changes where or how a WordPress site runs: a new host, a rebuilt theme, a headless front end, or a move off WordPress to a static framework such as Astro. The risks are the same in every case (lost content, broken URLs, lost rankings, downtime), and they are avoided the same way: an inventory, a URL map, a rehearsal on staging, and a cutover you verify.
This guide covers that sequence for a typical business site. If you are leaving Wix, the Wix to WordPress migration guide covers that platform change. For large, high-revenue platforms where minutes of downtime cost real money, read the enterprise WordPress migration framework.
Why migrations go wrong
Most failed migrations fail in one of three ways:
- No plan. The move is treated as copy and paste, with no inventory of what the site does or what will change.
- SEO neglect. Redirects are missing, and titles, meta descriptions and structured data do not survive the move.
- Performance regression. The new theme or stack turns out to be slower than the old one, and nobody measured the old one.
Each step below exists to prevent one of these.
Step 1: Audit before you touch anything
Before you move a single file, you need a map.
- List every URL. Crawl the site with a crawler such as Screaming Frog, then add URLs from the XML sitemap, Search Console and analytics to catch pages the crawl missed.
- Find the load-bearing pages. Note your top organic landing pages and their traffic. These are the pages the whole migration must protect.
- Inventory functionality. Forms, custom post types and taxonomies, memberships, ecommerce, integrations, scheduled tasks and the email the site sends.
- Benchmark performance. Record Core Web Vitals field data and lab results for your key templates, so you can prove the new site is not slower.
If you would rather have the call made for you, our Performance & Architecture Audit ends in a written verdict on whether to rebuild, refactor or leave the site alone.
Step 2: Choose the destination
Be clear about which kind of migration this is, because the risk and effort differ:
- Same site, new host. The lowest-risk move: mostly infrastructure, DNS and testing.
- Modernized WordPress. A lean theme, fewer plugins and current PHP. Familiar editing and the plugin ecosystem stay; the site needs ongoing discipline to stay lean. Best for content-heavy sites with non-technical editors.
- Headless WordPress. Editors keep the WordPress admin, and a separate front end is built from its content API. The public site gets faster and exposes less to attackers, and content can feed several channels. In exchange, you run two systems, development is more complex, and front-end features from plugins such as page builders do not carry over.
- Off WordPress to a static site. A framework such as Astro builds every page ahead of time, which brings speed, a small attack surface and low running costs. The editing workflow changes, so plan it with the editors.
Roseville Landscape Material Supply took the last route: it moved from WordPress to Astro, and its Spanish, which had come from a machine-translation plugin, became a full second edition with its own addresses. Logistics Assistance Now took it too, from a WordPress site built with Elementor on GoDaddy hosting to an Astro site with pages for each of its two audiences and a library of articles. Our WordPress-to-Astro migration page describes how we run that kind of move.
Step 3: Build and rehearse on staging
Never migrate straight to production.
- Set up a staging copy on the destination, protected by a password so search engines cannot index it.
- Choose the PHP version deliberately. Use one that still receives security fixes (php.net lists them) and that your theme and plugins support.
- Import the database and check the character encoding.
- If the domain or URL structure changes, update URLs in the database with a tool that understands WordPress’s serialized data, such as WP-CLI. Run it with
--dry-runfirst:
wp search-replace 'https://old.example.com' 'https://new.example.com' --all-tables --dry-run
Step 4: Move the content
For a like-for-like move, migration plugins such as WP Migrate, All-in-One WP Migration or Duplicator, or your new host’s own migration tool, handle files and database together.
When the structure changes (categories becoming custom taxonomies, page-builder content becoming blocks, WordPress content becoming Markdown for a static site), write down the mapping and use scripts. Preserve the relationships, not just the text: authors, categories, featured images, internal links and alt text. Watch for images whose URLs are hard-coded in post content.
Relationships are where migrations quietly lose value. On the Totallyamaha network, three Yamaha snowmobile forums whose technical side we look after, threads from 2003 still sit at their original numbers after five platform moves, and a link from the phpBB years still finds its thread.
Step 5: Build the SEO safety net
- Redirect every old URL that changes to its closest new equivalent with a 301. No chains, and never a blanket redirect to the homepage.
- Use pattern redirects for systematic changes, such as a new category base or the removal of dates from permalinks, and test them against your full URL list.
- Carry over on-page signals: titles, meta descriptions, headings, canonical tags, structured data and hreflang.
- Submit the new XML sitemap in Search Console after launch.
- Watch 404s for weeks, not hours, in server logs and Search Console.
Step 6: Cut over and verify
- Lower the DNS TTL to around 300 seconds at least a day before the switch, so most resolvers pick up the change within minutes. Some cache longer, so keep the old server running until traffic has fully moved.
- Freeze content edits during the cutover, or plan to sync anything that changes in the meantime, such as orders and comments.
- Test what the site does, not just how it looks. Submit every form and check the email arrives, complete a payment, log in, and confirm scheduled tasks run.
- Test on real phones. Layout bugs often appear only at specific viewport sizes.
Common pitfalls
- “It looks fine.” Visual checks miss broken forms and payment gateways.
- Forgetting email. If DNS moves, make sure the MX records for your email move with it.
- Launching with search engines blocked. The “Discourage search engines” setting from staging sometimes reaches production. Check it on launch day.
- Canceling the old host too early. Keep it, and a full backup, until the new site has been stable for a few weeks.
- Changing everything at once. A new host, theme and URL structure in one weekend makes problems hard to trace.
The decision rule
If the goal is a new host, migrate like for like first and improve afterward. If the goal is a new architecture, build it on staging, rehearse the cutover, and switch once. Either way, the migration is done when the new URLs are indexed, the redirects are confirmed and traffic has held, not on launch day.