Search 4 min read Updated
Legacy e-commerce migration without an SEO traffic drop
In short
Organic traffic drops during a shop migration almost always stem from unmapped URLs, redirect chains, broken canonicals, or blocked crawling; prevent them with log-driven 301 maps and staged verification.
Rebuilding an ageing e-commerce store on a modern stack often improves speed and checkout conversion, yet wipes out years of organic search equity if URL changes are handled carelessly. Preserving rankings during a legacy shop migration comes down to four disciplined steps: inventorying real URLs from logs, building a single-hop 301 redirect map, keeping canonicals consistent, and verifying the rollout immediately.
Start with bot log analysis, not just the sitemap
Legacy shops accumulate messy URLs over years: old category paths, uppercase variants, trailing-slash inconsistencies, and seasonal landing pages with external backlinks. Relying solely on the current XML sitemap misses those historical entry points.
Before freezing URL design, combine three sources into one URL inventory:
- Server access logs: Extract URLs requested by Googlebot and other search crawlers over recent weeks to see which legacy paths still consume crawl attention.
- Search Console and analytics landing pages: Identify every product, category, and guide page that actually earns impressions, clicks, or conversions.
- External backlink exports: Preserve high-authority links pointing to discontinued campaigns or old PDF brochures.
Build a clean one-to-one 301 redirect map
Follow Google’s site move with URL changes guide and map every legacy URL directly to its closest equivalent on the new platform using a permanent 301 redirect. Avoid redirect chains where an old URL bounces through two or three intermediate rules, as chains dilute signals and slow crawling; see redirect best practices.
For genuinely discontinued items with no successor, do not mass-redirect everything to the homepage—search engines treat irrelevant homepage redirects as soft 404s. Return a clear 404 or 410 status as documented in Google’s HTTP status codes guide.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Legacy shop migration failure modes
| Migration stage | Common mistake | Safe alternative |
|---|---|---|
| URL inventory | Exporting only active catalogue SKUs | Merge active catalogue, Search Console pages, and bot logs |
| Redirect rules | Wildcard redirects to homepage or multi-hop chains | Direct one-hop 301 mapping to exact category or product |
| Canonicalisation | Leaving staging domain canonicals or wrong protocol | Self-referencing HTTPS canonicals verified per template |
| Launch day | Leaving staging noindex or robots disallow active | Pre-flight check on robots.txt, meta robots, and status codes |
Canonicalisation and internal links
Redirects alone are not enough if internal navigation and canonical tags disagree. Verify that all internal menu links, breadcrumbs, and XML sitemaps point directly to the final destination URLs rather than relying on 301 redirects. Review Google’s canonicalisation rules and canonical URL fundamentals so pagination, sorting parameters, and trailing slashes resolve consistently. Also audit structured data such as Product and BreadcrumbList markup on the new templates, because missing prices, availability, or identifiers during a redesign can temporarily remove rich results even when rankings stay intact.
Staged rollout and post-launch checks
Treat the launch as a controlled cutover rather than a fire-and-forget deployment (see general site migration planning):
- Test the redirect table before DNS cutover: Run an automated script against your staging host with host-header overrides to confirm every priority legacy URL returns a single 301 to a 200 destination.
- Check indexing blockers at minute zero: Confirm staging noindex headers and basic-auth gates are removed on production.
- Watch live server logs for 404 spikes: During the first 48 hours, inspect 404 logs continuously and patch any missed legacy URL patterns immediately.
Keep the old URL redirect rules active for at least a year after migration, and never delete historical redirect tables during later redesigns. External links and bookmarks continue sending crawlers to old paths long after launch.
Common questions
- Why should server logs be analysed before building a migration redirect map?
- XML sitemaps rarely list every URL that still receives organic clicks or backlinks; server access logs reveal which legacy category, product, and parameter URLs Googlebot actually crawls.
- Should discontinued products redirect to the homepage during a migration?
- No. Redirecting discontinued items to the homepage creates soft 404 signals; redirect to the closest active product or parent category, or return a clean 404 or 410 status when no substitute exists.
- What is the safest way to verify SEO health right after launch?
- Crawl the live redirect map immediately to confirm single-hop 301 responses, verify self-referencing canonicals and robots rules, and monitor 4xx/5xx spikes in server logs and Search Console.
Sources
- Site Moves with URL Changes, Google Search Central. Accessed 24 November 2026
- HTTP Status Codes and Network Errors, Google Search Central. Accessed 24 November 2026
- Consolidate Duplicate URLs, Google Search Central. Accessed 24 November 2026
Further reading
-
Moving a site without losing search traffic
Map every important old URL to its new equivalent, redirect it permanently, then update links and sitemaps and watch the results for weeks.
-
Choosing between 301, 302, 307 and 308 redirects
Use a permanent code when an old address should be retired, and a temporary one only when the original address is meant to return.
-
Canonical URLs when one page has many addresses
A canonical URL is the address you want search engines to treat as the main version, and you signal it with redirects, rel=canonical and your sitemap.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea