Switching ecommerce platforms without losing your search rankings
A new platform can improve your buying journeys and operations. But if your page URLs change without a plan, the links search engines and other sites have built up over time lead to dead pages. Organic traffic can drop just as your team is expecting the project to pay off.
Google notes that a major site move can cause temporary ranking fluctuations while the site is recrawled and reindexed. The realistic goal isn't to avoid any change at all, but to keep the signals you've earned and shorten the period of instability.
This article covers SEO during a migration. Project budgeting and the decision to go headless are covered in other Shopflow resources.
Published · By Shopflow
- Category:
- Headless commerce and integrations
- Format:
- Article
- Goal:
- Prepare a project
Inventory the URLs that matter
Google recommends drawing on several sources to list your old URLs: existing sitemaps, your CMS page list, server logs, analytics and Search Console's links data. A single source usually misses pages.
- Category and collection pages.
- Product pages and their variants.
- Content pages: guides, blog posts, help pages.
- Brand pages and promotional pages that still have links.
- Images and downloadable files, such as PDF spec sheets.
- Every language version of those pages.
For each URL, note its organic traffic, conversions and the external links pointing to it. That data sets your priorities: a page that partners link to deserves special attention.
Map each old URL to its best destination
Your redirect map ties each old URL to the closest page on the new site. Don't send everything to the homepage: Google says that redirecting many unrelated URLs to a single page can be treated as a soft 404.
When content is removed with no equivalent, Google recommends returning a 404 or 410 status rather than forcing a redirect.
| Situation | Recommended destination | Watch out for |
|---|---|---|
| Product kept | New page for the same product | Content, pricing and reviews carried over |
| Product replaced by an equivalent | Page for the replacement product | A genuine equivalent for the buyer |
| Product discontinued, no equivalent | Relevant category, or 404 or 410 | Don't redirect to the homepage |
| Categories merged | New category that groups the range | Category copy updated |
| Parameter-based filtered pages | Depends on which filters you make indexable | Avoid multiplying duplicates |
| Old language version | Same page in the same language | Don't send French URLs to English pages |
Set up permanent, direct redirects
Google recommends permanent server-side redirects, such as 301 or 308, whenever technically possible. JavaScript redirects should only be a last resort.
Avoid redirect chains. Your current site may already have redirects left over from a previous redesign: update them so they point straight to the final destination.
Keep redirects in place as long as possible. Google generally advises at least a year, and indefinitely from a visitor's point of view. Update your internal links too, rather than relying on redirects.
Keep the content and metadata that rank
Carry over title tags, meta descriptions, H1s, category copy, image alt text and structured data such as Product or BreadcrumbList. A new page template can wipe out category copy that was bringing in visits.
Each new page should have a canonical tag pointing to its own URL, as Google recommends. Also decide which pagination and filter pages should be indexed.
Check that product page content is present in the rendered HTML, especially if the new storefront relies on JavaScript. Test it rather than assume.
Protect your English and French versions
A bilingual site needs a separate URL for each language. Google asks you to update hreflang annotations with the new URLs: each version should reference the other versions and itself.
Build your redirect map by language. An old French page should lead to the new French page, not its English equivalent. Also check that the language switcher points to the matching page rather than the homepage.
Test before you switch over
Staging sites are often blocked with robots.txt or a noindex directive. Google reminds you to remove those blocks at launch and confirm none are left behind.
- Full crawl of staging to catch broken internal links.
- Test the entire redirect map, not just a sample.
- Check canonical and hreflang tags.
- An XML sitemap containing only the new URLs.
- Validate structured data on the main templates.
- Analytics and conversion tracking in place.
Launch day and the weeks that follow
Turn on redirects at launch and submit the new sitemap in Search Console. The Change of Address tool only applies if you're changing domain or subdomain.
Monitor index coverage, 404 errors, server logs for Googlebot activity, impressions and clicks by page, and conversions. According to Google, it can take a few weeks for a medium-sized site to see its new URLs replace the old ones in search results.
Compare this data with the baseline you captured before the migration. Decide in advance who reviews the gaps and which fixes come first.
Your checklist
An SEO-safe migration is prepared weeks before the switch and monitored for months afterward.
Your decision list
- List URLs from several sources, including images and files.
- Record traffic, conversions and links for every important page.
- Build the redirect map by language.
- Set up permanent, direct and long-lasting redirects.
- Carry over titles, descriptions, copy, structured data and canonical tags.
- Update hreflang annotations and the language switcher.
- Remove staging blocks and submit the new sitemap.
- Assign who monitors metrics and fixes errors after launch.
Where Shopflow fits
Shopflow's B2B Engine page describes importing customer data, pricing and order history by CSV or API, with migration scripts and support. The Headless Commerce page outlines a channel-by-channel migration. These pages don't describe a redirect or SEO management tool: ask who builds the redirect map, where redirects are configured, how canonical and hreflang tags are generated and who handles monitoring after launch.
Related pages
- Headless CommerceThe channel-by-channel migration described by Shopflow.
- B2B EngineImporting customers, pricing and order history as described by Shopflow.
- Headless commerceThe guide to deciding whether headless commerce is right for you.
- B2B project costThe article on what to budget for in a project, including migration.
Sources consulted
- Google Search Central: Site moves and migrations (opens in a new tab)
- Google Search Central: Redirects and Google Search (opens in a new tab)
- Google Search Central: Localized versions of your pages (opens in a new tab)