WordPress to Next.js Migration Checklist: 6 Stages in Order
A WordPress to Next.js migration checklist in six stages: audit, build, redirects, staging QA, launch day and the first weeks, so nothing gets lost.
7 min read

On this page
A WordPress to Next.js migration checklist works best in six stages, in this order: audit the old site, build the new one, map redirects, test on staging, launch, then monitor for the first few weeks. The audit has the longest list on purpose. In my experience, most problems after launch, from a missing page to a form that emails nobody, trace back to something nobody wrote down before the build started.
This is the order I work through on a WordPress to Next.js and Sanity migration. SEO and content migration get only their essential checks here.
1. Audit the WordPress site before you build
- Every URL. Combine the WordPress sitemap (
/wp-sitemap.xml, or/sitemap_index.xmlwith Yoast or Rank Math), a full crawl, and the page and performance exports from Google Search Console. Keep them in one spreadsheet; it becomes your redirect map and your QA list. - Content types. Posts, pages, custom post types, categories, tags, custom taxonomies, custom fields, menus and reusable blocks, with a count of each.
- Plugins and what they do. Write the feature next to each active plugin, for example "Contact Form 7: enquiry form that emails sales". Each feature then needs a decision: rebuild it, replace it with a service, or drop it.
- Forms. Fields, where submissions go, notification emails, spam protection, and thank-you pages, which are often tracked as conversions.
- Integrations. CRM, newsletter, live chat, booking widgets, maps and video embeds.
- Tracking. Analytics, Tag Manager, ad pixels, conversion events and the cookie consent banner.
- SEO data. Titles, meta descriptions, canonicals, noindex settings, Open Graph images, structured data and robots.txt rules.
- Existing redirects. Rules already held in a redirect plugin, an SEO plugin or
.htaccessdisappear with WordPress unless you carry them over. - Media. Everything in
wp-content/uploads, including PDFs linked from pages, plus alt text. - A baseline. Traffic, top pages, search queries and Core Web Vitals, so you have something to compare with after launch.
Expect more URLs than pages. WordPress adds category, tag, author and date archives, pagination and feeds on top of what you edit. On the 75-page tourism site in my portfolio, 229 redirects were mapped.
2. Build the new site
- Content model. Map each WordPress content type and custom field to a schema in the new CMS, and decide what isn't coming across.
- Content and media migration. Script it rather than copying by hand. Convert shortcodes and page builder layouts, re-upload media with its alt text, and rewrite internal links in the content to the new URLs instead of leaning on redirects.
- Templates. One reusable Next.js template per content type and page layout.
- Forms. Rebuild them with validation and spam protection, sending to the same inboxes and tools as before.
- Search. WordPress has built-in search; a Next.js site doesn't. Query the CMS, use a search service, or decide you don't need it.
- Metadata parity. Every page keeps the title, description, canonical and Open Graph tags it had, set through the Next.js metadata API. Improve them after launch, so any ranking change can be traced.
- Structured data. Output the same JSON-LD the old site did, such as Article, Organization and BreadcrumbList.
- Sitemap and robots.txt. Generate both from the CMS content; Next.js supports
sitemap.tsandrobots.tsfiles for this. - Trailing slashes. WordPress URLs end in a slash, and Next.js redirects
/about/to/aboutby default. Keep that, or settrailingSlash: true, but use one form everywhere: canonicals, the sitemap and internal links. - Tracking and consent. Reinstall analytics, tags and pixels, and recreate the conversion events.
- A helpful 404 page, with navigation, so a missed URL still leads somewhere.
3. Redirects: one permanent redirect per changed URL
- Give every URL in the inventory a destination. URLs that don't change need no rule.
- Point each old URL straight at its final address. Google advises redirecting to the final destination directly, so update the redirects you carried over from WordPress to point at the new URLs too.
- Don't send everything to the home page. Google warns that redirecting many old URLs to one irrelevant page, such as the home page, may be treated as a soft 404. Send each to its closest equivalent, or let truly dead pages return a 404.
- In
next.config.js,permanent: truesends a 308; Netlify's_redirectsfile usually uses 301. Google treats both as permanent. - Keep the redirects for at least a year, as Google recommends.
The free WordPress to Next.js Redirect Generator builds the map from a sitemap or URL list, ready for Next.js, Vercel or Netlify.
4. Test everything on staging
- Crawl staging and compare it with the URL inventory: every old URL should return a 200, or redirect once to a page that does. Test some with and without the trailing slash.
- Compare titles, meta descriptions and canonicals with the old site. Canonicals must use the live domain, not the staging one.
- Fix broken links and missing images.
- Check structured data with Google's Rich Results Test.
- Submit every form and confirm the emails and CRM entries arrive; check that analytics and pixels fire.
- Run Lighthouse on each main template and fix slow loading and layout shift now. Real-user Core Web Vitals data only arrives after launch.
- Have an editor create, edit and publish a test page in the CMS.
Staging protection must not reach production. View the source of a few pages: on the live site, the noindex tag below must be gone, robots.txt must not block crawling, and the canonical must point at the real domain:
<!-- Fine on staging, must not reach production -->
<meta name="robots" content="noindex">
<!-- On production: the live domain and the final URL -->
<link rel="canonical" href="https://www.example.com/blog/my-post">5. Launch day
- Launch early in the week, outside your busiest season, so people are around to fix things.
- Lower the DNS TTL ahead of time, at least as long before launch as the current TTL, so the switch takes effect quickly.
- Freeze edits in WordPress, then run a final content sync so nothing published in the last days is lost.
- Switch DNS, then check HTTPS and that the http and www variants all redirect to one version.
- Spot-check the top pages and a sample of redirects on the live domain.
- Confirm that Search Console verification still works. A verification meta tag or HTML file from the old site must exist on the new one, and a verification TXT record must be copied if DNS moves to a new provider.
- Submit the new sitemap in Search Console and inspect a few key URLs.
6. Watch the first weeks after launch
- Check Search Console's page indexing report and your hosting logs for 404s, and add redirects for any old URL that was missed.
- Compare traffic, top pages and queries with your baseline. Google notes that rankings can fluctuate while it recrawls, and that a medium-sized site can take a few weeks or more to settle.
- Watch the Core Web Vitals report as real-user data comes in.
- Ask editors what slows them down, and fix gaps in the CMS or templates early.
FAQ
What is most often missed on a WordPress to Next.js migration checklist?
Features a plugin handled quietly: form notifications, site search, newsletter sign-ups, conversion tracking and redirects that a plugin managed. Nobody thinks of them as pages, so they don't show up in a page list. Writing the feature next to every plugin during the audit catches them.
Should I change my URLs during the migration?
Only where there's a clear benefit, such as removing dates from blog post URLs. Every changed URL needs a redirect and adds risk, so keeping the old structure is the safer default.
Do I need to tell Google about the migration?
If the domain stays the same, there is nothing to file: submit the new sitemap and let the redirects do the work. The Change of Address tool in Search Console is only for moving to a new domain or subdomain.
How long should the old WordPress site stay online?
Keep a backup of the database and uploads, but don't leave the old site publicly reachable on another address, or search engines may index both versions. What must stay are the redirects, for at least a year.
Key takeaways
- Work in six stages: audit, build, redirects, staging QA, launch, then monitoring.
- The audit matters most: list every URL, plugin feature, form, integration and tracking tag before the build starts.
- Give each changed URL one permanent redirect to its closest match, with no chains, and keep it for at least a year.
- Remove noindex and staging blocks before launch, then watch 404s and Search Console for several weeks.
Tags
- WordPress Migration
- Next.js
- SEO
- Best Practices

About Keshur Gojiya
Web developer and HTML email specialist with 6+ years of experience, building websites and emails for businesses, startups and agencies.
Get to know me

