Moving a WordPress Site to Static Without Losing Rankings: Our 357-URL Checklist

We moved our own company website off a WordPress theme and onto a static front end built with Next.js. Every page now arrives as plain HTML. The home page went from around 1.1 to 1.6 MB and a first paint of 2.5 to 3.4 seconds on a phone, to roughly half a megabyte and 0.3 to 0.85 seconds.
That was the easy part. The part that actually decided whether the move was a success was this: the site had 357 URLs that Google already knew about, some of them ranking for the local searches that bring in our enquiries. A redesign that loses those is not an upgrade, however fast it is.
This is the checklist we used, in the order we used it. Most of it applies whether you are moving to Next.js, another static generator, or just a new WordPress theme.
1. Write down every URL before you touch anything
Start with what Google has, not what you think the site has. We took the list from three places and merged them: the XML sitemap, the WordPress database (every published post and page), and the menu. They did not agree. The sitemap had pages the menu didn’t link to. The database had a “Sample Page” from the original install and a forgotten slider page, both still public and both indexed.
The final list was 357 URLs. That list becomes the test: after the move, every one of them must either return the new page with a 200, or redirect to the right place with a 301. Nothing on the list is allowed to become a 404.

2. Keep the words Google ranks you for
The new design is new. The text that ranks should not be, at least not on launch day.
- Titles and meta descriptions: copy them exactly from your SEO plugin. We read them from Yoast’s data for every page and used them verbatim, including ones we would have written differently, such as “Best Web Design Company in Thoothukudi” on our promises page. Those titles are what the page ranks for today. Rewriting them is a separate experiment for a later month.
- Body content: keep the existing copy on existing pages. A redesign can change layout, imagery and order. If you also rewrite every paragraph, and rankings move, you will never know which change did it.
- Headings: keep exactly one H1 per page, and make it the same main heading the old page had. Page builders often produce pages with no H1 or with three; the move is a good moment to fix that, carefully.
- URLs: keep every slug, including the trailing slash.
/about-usand/about-us/are different URLs to a crawler.
3. Keep the invisible things
These are the items that don’t show up in a screenshot and are easy to lose in a rebuild:
- The Search Console verification tag. If your property is verified by an HTML meta tag, the new template must carry the same tag. Lose it and Search Console quietly stops trusting you are the owner, at exactly the moment you most need its reports.
- Analytics. Same measurement ID, on every page, from the first minute. Otherwise your before-and-after comparison has a gap right where the change happened.
- Canonical tags pointing at the page’s own clean URL.
- Structured data: organisation details, breadcrumbs, article markup on posts.
- The www or non-www choice. Static pages served from a new folder can bypass the redirect WordPress used to do for you. Test the non-www address explicitly; ours briefly answered with a 200 instead of a 301 until we added the redirect at the top of the rules.
- Robots. A staging copy should be
noindex. The production copy must not be. Check the live HTML, not the template.
4. Don’t delete WordPress. Put the new site in front of it.
We kept WordPress exactly where it was. Writers still log in to the same admin and publish posts the same way. The static site is built from WordPress’s own content through its REST API, and served from a folder next to it.
The switch is a few lines in .htaccess: if a static copy of the requested page exists, serve it; if not, let the request fall through to WordPress as before.
# Serve the static copy when one exists; everything else falls through to WordPress.
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$
RewriteCond %{QUERY_STRING} !(^|&)(p|page_id|preview|s)=
RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-login\.php|wp-json|wp-content|wp-includes)(/|$)
RewriteCond %{DOCUMENT_ROOT}/_site%{REQUEST_URI}index.html -f
RewriteRule ^ /_site%{REQUEST_URI}index.html [L]
This arrangement has three properties we wanted:
- Nothing can 404 because of the move. Any URL the static build doesn’t have, for example a post published five minutes ago, is still served by WordPress, in the old design, until the next build.
- Admin, uploads, feeds and sitemaps are untouched. They are explicitly excluded from the rule.
- Rollback is one deletion. Remove that block and the old site is back in under a minute. Knowing that made the switch a calm decision instead of a nervous one.

5. Replace the plugins that did real work
A static page can’t run a WordPress plugin. Go through your plugins and list the ones a visitor actually touches. For most business sites that is one: the contact form.
We replaced Contact Form 7 with a small PHP endpoint that sends through WordPress’s own mail function, so it uses the same SMTP account and reaches the same three inboxes as before. It has a hidden honeypot field, a minimum fill time of three seconds, and a limit of five messages per hour per address. And it has a test mode, switched on by a secret header, that sends to our own inbox only, so the form can be tested on the live site without emailing the people who receive real enquiries.
Other plugins worth checking: search, comments, cookie banners, WhatsApp buttons, popups and anything that injects tracking. Each one is either rebuilt, replaced or consciously dropped.
6. Make the build refuse to publish a broken site
A static site is rebuilt from the CMS on a schedule, ours twice a day. That introduces a failure mode WordPress never had: if the REST API is slow or returns half a list, the build happily produces a site with half the pages.
Our build counts its pages and refuses to deploy if there are fewer than expected. It uploads the new build next to the old one and swaps folders in a single rename, keeping the previous version, so a visitor never sees a half-uploaded site.
7. Verify against the list, with a script
On launch day we requested every one of the 357 URLs from the live site and checked three things for each: the status code, the title, and that the response was the new static page rather than WordPress. The result was 355 served by the new site and 2 redirected on purpose: the old sample page and slider page now 301 to the home page.
Then we checked by hand what scripts can’t judge: the home page, one service page, one blog post, the contact page, at desktop and phone widths. And, as we learned the next morning, with the mobile menu open. Our first launch had a menu that opened to a sliver on phones; every screenshot had been taken with it closed. Test every state a visitor can reach, not just the state a page loads in.

8. Watch for four weeks before changing anything else
Rankings don’t react on day one. For the following month, compare clicks and impressions in Search Console week over week, especially for the local and service pages, and look at the Pages report for anything new under “Not found” or “Duplicate”. Hold off on content rewrites, page merges and URL changes until that comparison is clean. One change at a time is the only way to know what any change did.
Questions people ask
Will a faster site rank higher?
Speed helps, especially on mobile, but it is one signal among many. The bigger risk in a migration is losing what you already have. Get that right first; treat any ranking gain from speed as a bonus.
Do we need Next.js for this?
No. The checklist is the same for any static generator, and most of it applies to a WordPress theme change too. We chose Next.js because it builds from the WordPress API cleanly and outputs plain HTML.
Can the writers still publish on their own?
Yes. They publish in WordPress as before. The post is live immediately in the old design, and appears in the new design at the next scheduled build.
What about images?
We left them in WordPress’s uploads folder, at the same URLs, so image search and existing links keep working. The new pages load them lazily below the fold.
The short version
List every URL. Keep titles, descriptions, headings, slugs, verification and analytics exactly as they were. Put the static site in front of WordPress instead of replacing it, with a one-step rollback. Replace the contact form properly. Make the build refuse to ship a partial site. Verify every URL with a script, then test the open states by hand. Then wait a month before the next change.
We build fast business websites and move existing ones without losing what they’ve earned. Talk to us about yours.



