Insights
Moving off WordPress and WooCommerce without losing rankings
Treat the move as a URL project before a design project. A full URL inventory, one-hop 301 redirects and a Search Console check after launch, from the blizgantitvarka.com rebuild.
Mantas, FounderPublished Updated
You keep your rankings by treating a WordPress migration as a URL project first and a design project second. List every URL Google has indexed before you write any code, give each one a single 301 redirect to its final home, and check Search Console after launch. That is how we moved blizgantitvarka.com off WordPress and WooCommerce to Next.js 16, retired the online store on the way, and saw no 404s from it in Search Console.
Here is what that looked like in practice, and what we would do the same way next time.
Why do rankings drop after a site move?
Usually not because of the new framework. Rankings drop when pages that Google knows about stop answering. An old URL returns a 404, or it redirects through two or three hops, or it lands on a page that has nothing to do with what the visitor searched for. The new site can be faster and nicer and still lose traffic if the old addresses are left behind.
So the first job is not the design. It is making sure every old address has somewhere sensible to go.
Where do you find every URL Google knows about?
Start with the sitemaps. On blizgantitvarka.com, WordPress, WooCommerce and Yoast had produced nine of them:
- pages
- posts
- products
- product categories
- product tags
- post categories
- post tags
- authors
- an e-landing sitemap for gated course content
We pulled all nine and merged them into one master redirect map before a line of the new site was written. On the alprodarbai.lt rebuild the same exercise also turned up posts living at the root, Yoast project placeholders and /wp-content/uploads paths that other sites linked to directly. Those count too.
Where should each old URL point?
We used three rules for every row in the map:
- If the page still exists, keep the exact same path.
- If it does not, send a 301 to the closest canonical page, not to the home page by default.
- One hop, never chained. The redirect goes straight to the final destination.
The harder calls were about the parts of the site that were going away. On blizgantitvarka.com the WooCommerce store was retired completely: no catalog, no cart, no checkout. Here is where each piece went:
- Product URLs point to a curated Amazon affiliate page, which still serves people looking for those products.
- Cart and checkout point to the contact flow.
- Tag archives fold into the main blog index, where they add link value instead of splitting it.
- Author pages point to the about page.
What about old WordPress links like /?p=123?
WordPress answers to query-string links like /?p=123 even when pretty permalinks are on, and those can end up in emails, forums and old backlinks. A static redirect list does not catch them, because the path is just the home page. We handled them in code: proxy.ts on blizgantitvarka.com and custom middleware on alprodarbai.lt map the post ID to its new address.
Should you move the old content as it is?
We did not. Many of the old SEO landing pages were thin WordPress stubs of 200-300 words. Porting them as they were would have kept the URLs but not given Google much reason to keep ranking them.
Each one was rewritten as 800-1,500 words of Lithuanian copy, in the informal tu voice the brand uses, with at least three links to supporting articles and one link to a service page. The URL stayed the same. The page behind it got better.
Gated course lessons were the interesting case. The easy option was to redirect them all to the course sales page. That would have thrown away the rankings each lesson had earned. Instead each lesson became a public teaser article of 500-900 words that ranks for its own keyword and points to the paid course. More pages that can rank, not fewer.
How do you know the migration worked?
Check, do not assume. For blizgantitvarka.com we looked at three things:
- Search Console. Seven days after launch it showed zero unresolved 404s from the old store.
- Redirect coverage. 100% of indexable legacy URLs resolve in one hop.
- Speed. Mobile Lighthouse is 98 or higher on every route, with LCP under 1.8 seconds on throttled 4G Android.
We also kept the full nine-sitemap redirect map in the repository. When someone asks six months later where an old URL went, the answer is in version control, not in someone's memory.
What is the short checklist?
- Pull every sitemap the old site produces, plus anything linked from outside such as uploads and query-string links.
- Build one redirect map before you build pages.
- Same path where you can. One 301 hop to the closest match where you cannot.
- Decide on purpose where retired sections go. Do not dump everything on the home page.
- Rewrite thin pages instead of porting them.
- Watch Search Console for 404s in the first week and keep the map in the repo.
None of this is complicated. It is just tedious, and the tedious part is what protects the rankings. If you are planning a similar move, the full blizgantitvarka.com case study has the details.
Contact
Tell us what you need to build
Write a few sentences about the project and its constraints. A founding team member replies within one business day.
- info@elzeego.com
- Phone
- +370 676 17 797