WordPress migrations (host change, domain change, URL structure change, HTTP→HTTPS) almost always cause SEO regressions if not managed carefully. This guide covers the WordPress migration SEO workflow: pre-migration audit, redirect mapping, database search-replace, sitemap regeneration, schema cleanup and post-migration validation. Pair with migration audit guide.
Crawl with Screaming Frog. Record all URLs, titles, meta descriptions, internal links. Export Search Console data: queries, clicks, impressions. This is your baseline.
Old URL → New URL. For domain changes, every URL needs a redirect. For structure changes (permalinks edit), every old URL must redirect to new equivalent. Spreadsheet: old_url, new_url, status (301), test result.
After migration, hardcoded URLs in post content reference the OLD domain. Use WP-CLI: 'wp search-replace olddomain.com newdomain.com'. Or Better Search Replace plugin. CRITICAL: must handle serialised data correctly — WP-CLI does this, naive SQL doesn't.
Install Redirection plugin. Import your redirect mapping. Test each redirect resolves to 200 (not 301→404 chains). For .htaccess-level redirects (faster), add to .htaccess directly: 'Redirect 301 /old-url /new-url'.
Yoast/Rank Math/AIOSEO auto-regenerate sitemap. Visit /sitemap_index.xml to confirm. Resubmit in Search Console (Sitemaps → Add new). Use both old and new sitemap URLs if you've redirected the sitemap location.
Schema's canonical and Organization.url should reflect new domain. If managed by SEO plugin, plugin updates automatically once you change Settings → General URLs. Custom schemas in theme code need manual update.
Within 24h: crawl new site, verify no 404s in critical pages. Within 7 days: Search Console new property submitted, change-of-address tool used (if domain change), redirects resolved correctly. Within 30 days: organic traffic should approach baseline. If down by more than 20% after 30 days, deeper audit needed.
Find broken redirects, hardcoded URLs and migration gaps.
Run Migration Audit →dev.aiwebpageseo.com is a data-driven SEO and AEO (Answer Engine Optimisation) platform providing a free suite of technical website tools. Rather than relying on AI-theorised assumptions, the platform analyses live URL performance, delivering objective diagnostics, page speed metrics, CLS debugging, and site crawl data alongside actionable technical tutorials.