The short answer
To migrate a WordPress site safely: take full backups, record every URL the site has, build and test the new site on a staging copy, map every old URL that changes to its new URL with a 301 redirect, lower your DNS TTL in advance, switch over during a quiet period with a content freeze, and check Search Console daily for the following weeks. Keep the old server running until you are sure you will not need to roll back.
The steps below expand each of those. The order matters more than any single tool.
1. Decide what kind of migration it is
Migrations carry different levels of risk, and you should know which one you are doing before you start:
- Host move: same domain, same URLs, new server. The lowest risk, if done carefully.
- Domain change: new domain, same content. Every URL changes, so redirects and Search Console's Change of Address tool are essential.
- Structure change: new permalinks, merged pages or a redesign. URLs change inside the same domain.
- Platform change: moving into WordPress from another system, or out of WordPress to another. Usually all of the above at once.
Avoid combining a host move, a redesign and a domain change in a single step if you can. When traffic drops after a combined change, it is hard to tell which part caused it.
2. Record a benchmark and take backups
- Export performance data from Google Search Console: top pages and queries for recent months. This is your baseline for judging the migration later.
- Note your analytics figures for the same period, and check that tracking will carry across to the new site.
- Take a full backup of the files and the database, and download a copy you control, not only one stored on the old host.
- Test the backup by restoring it somewhere. A backup that has never been restored is an assumption.
- Record the current DNS records, including MX records for email, so nothing is lost when DNS moves.
3. Build a complete URL inventory
List every URL the site has or has had that might receive visits. Combine several sources, because each one misses something:
- A crawl of the live site with a crawler tool.
- The XML sitemaps, including those for posts, pages, categories and products.
- The pages report in Search Console, which shows URLs Google knows about.
- Landing pages from analytics.
- Pages with backlinks, from whatever backlink tool you use.
- Media files, PDFs and old URLs that already redirect.
4. Build and test on staging
- Set up the new site on a staging address protected by a password and set to noindex, so search engines do not find a duplicate.
- Move files and database, then update the old domain or paths in the database with a tool that handles serialised data, such as WP-CLI's search-replace. A plain text find-and-replace can corrupt settings.
- Match PHP and database versions to what your theme and plugins support.
- Test forms, checkout, logins, search, email sending, scheduled tasks and any integrations.
- Crawl the staging site and compare titles, meta descriptions, headings, canonical tags and structured data against the inventory.
Would you rather hand the migration over?
Ask about a migration5. Write the redirect map
For every URL in the inventory that changes, choose the single most relevant new URL and record it in a spreadsheet: old URL, new URL, redirect type. Then implement them as permanent 301 redirects at server level or with a redirect plugin.
- Redirect one-to-one wherever a matching page exists. Sending everything to the home page loses the relevance that earned the ranking.
- Avoid chains: point old redirects straight at the final URL.
- Keep the trailing slash and letter case consistent with the new site.
- Let genuinely retired pages with no equivalent return a 404 or 410 rather than a misleading redirect.
- Test every row on staging before launch.
6. Lower DNS TTL, then cut over
DNS records carry a time-to-live that tells resolvers how long to cache them. Lower the TTL on the records you will change to a few minutes at least a day or two before cutover, so the switch spreads quickly and, if needed, can be reversed quickly.
- Announce a content freeze so nobody publishes or takes orders on the old site during the switch, or plan how new orders will be synced.
- Take a final backup and sync the latest database and uploads to the new server.
- Install the SSL certificate on the new server and confirm HTTPS works.
- Remove the noindex setting and the staging password. This is the most commonly forgotten step.
- Update the DNS records and confirm the new server is answering.
- Check robots.txt, the XML sitemap, redirects, forms and checkout on the live domain.
7. Check Search Console after launch
- Submit the new sitemap in Search Console. For a domain change, verify the new property and use the Change of Address tool.
- Use URL Inspection on key pages to confirm Google sees the new version and can render it.
- Watch the page indexing report for new 404s, redirect errors and pages excluded by noindex.
- Compare clicks and impressions against the baseline you exported. Some movement in the first weeks is normal while Google recrawls.
- Crawl the live site again and fix anything the redirect map missed.
- Keep the redirects in place permanently, not for a few months.
8. Have a rollback plan
Before cutover, write down what would trigger a rollback, such as a broken checkout that cannot be fixed quickly, and how you would do it. Usually that means pointing DNS back at the old server, which is why you keep it running and lowered the TTL. Decide how any orders or form entries taken on the new site would be carried back. Only cancel the old hosting once the new site has run cleanly for a reasonable period.
Our recommendation
If the site earns real traffic or orders, treat the migration as a project with a written plan, a redirect map and a rollback step, not as a hosting task. Nobody can promise rankings will not move at all, but each step in this list closes off a known way of losing traffic, so following the order is the best protection you have.
See our WordPress migration page for how we run migrations, and website maintenance for looking after the site afterwards. If the move is to a new stack, our Next.js vs React guide may help.
