Prompt
How do I troubleshoot a bad ecommerce migration and missing redirects?
Latest observation
Here’s a practical way to troubleshoot a bad ecommerce migration and missing redirects without getting overwhelmed.
1) Triage the damage first
Start by figuring out what is broken most urgently:
- Top landing pages losing traffic?
- Product pages returning 404s?
- Category pages not redirecting?
- Checkout/account pages failing?
- Homepage or brand URLs changed?
- Canonical tags / internal links pointing to old URLs?
- Indexation dropped in Google Search Console?
If this is SEO-related, the biggest immediate risk is:
- old URLs returning 404/410
- redirects going to irrelevant pages
- redirect chains
- mass noindex/canonical mistakes
- robots.txt blocking crawling
2) Audit the redirect coverage
Create or get a list of:
- All old URLs from the previous site
- All new URLs on the current site
Then compare them.
Sources for old URLs
- XML sitemaps from the old site
- Google Search Console “Pages” / indexing reports
- Analytics landing pages
- Server logs
- CMS export
- Backlink data (Ahrefs, Semrush, etc.)
- Wayback Machine
- Previous sitemap files
What to look for
For each old URL, determine:
- 200 OK on old URL? (bad if it should have moved)
- 301 redirect to correct new URL?
- 404/410?
- Redirect chain? (old → intermediate → final)
- Redirect loop?
- Redirect to homepage instead of relevant page?
A simple spreadsheet with columns like this helps:
- Old URL
- Status code
- Redirect target
- New equivalent exists? Y/N
- Priority
- Notes
3) Crawl the site and compare
Use a crawler like:
- Screaming Frog
- Sitebulb
- Ahrefs crawl
- Deepcrawl/Lumar
Check:
- Broken links
- Redirect chains
- 404s
- Canonicals
- Meta robots tags
- Hreflang, if applicable
- Duplicate title/meta issues after migration
If you have a crawl of the old site, compare it against the new one.
4) Test redirects directly
Use tools like:
- browser dev tools
curl -I https://old-url- redirect checkers
- Screaming Frog in list mode
You want:
- 301 for permanent moves
- final destination returning 200
- no extra hops
- relevant destination
Example:
curl -I https://oldsite.com/product/old-sku
You’re looking for:
HTTP/1.1 301 Moved PermanentlyLocation: https://newsite.com/product/new-sku
5) Check common migration mistakes
These are very common:
Redirect issues
- Only some URLs redirected
- Pattern-based redirects missing edge cases
- Query strings not handled
- Trailing slash mismatch
- HTTP → HTTPS not fully enforced
- www/non-www inconsistencies
- Locale/country versions misrouted
SEO mistakes
- Old pages canonicalizing to themselves or wrong pages
- New pages canonicalizing to old URLs
- Important pages marked
noindex - Robots.txt blocking new site
- Staging site accidentally indexed
- Internal links still pointing to old URLs
- XML sitemap not updated
Ecommerce-specific issues
- Product variants changed URL structure
- Discontinued products not redirected to closest equivalent/category
- Faceted navigation generating crawl traps
- Category hierarchy changed without mapping
- Out-of-stock products returning 404 instead of a helpful alternative
- Filters/sort parameters creating duplicate URLs
6) Prioritize by business value
Not all missing redirects are equally important.
Prioritize:
- High-traffic landing pages
- High-converting product pages
- Category pages with strong backlinks
- URLs with many backlinks
- URLs ranking for valuable keywords
- URLs in paid campaigns, email, or social links
A redirect from a low-value blog post matters less than a product page with revenue.
7) Fix the redirect map
Build a proper redirect map with:
- old URL
- new target URL
- redirect type
- reason
Best practices:
- Redirect to the most relevant equivalent, not just the homepage
- Use 301, not 302, for permanent migration
- Avoid redirect chains
- Preserve path structure where possible
- Map discontinued products to closest alternatives or parent category
8) Verify search engine and analytics signals
Check:
- Google Search Console for 404s, soft 404s, indexing drops
- Coverage/Pages report
- Manual actions/security issues
- Sitemaps submitted and processed
- Analytics for traffic losses on key landing pages
- Log files for crawl behavior
If traffic dropped sharply, look at:
- which pages lost impressions
- whether Google is still crawling old URLs
- whether redirects are returning correct content
9) Inspect server and platform config
Depending on stack, the problem may be in:
- Nginx/Apache config
- CDN rules (Cloudflare, Akamai)
- CMS redirect plugin
- Ecommerce platform redirect manager
- app routing
- middleware / rewrite rules
Check for:
- rules being overridden
- order of precedence
- conflicting redirect logic
- uppercase/lowercase handling
- trailing slash normalization
- environment-specific differences
10) Use logs to find what users and bots hit
Server logs can reveal:
- top requested old URLs
- which old URLs return 404
- whether Googlebot is hitting broken paths
- whether redirects are being crawled
This helps identify which missing redirects matter most.
11) Communicate and monitor
After fixes:
- re-crawl the site
- resubmit sitemaps
- monitor 404s daily at first
- watch rankings and traffic over 2–6 weeks
- ensure redirects stay in place long term
Quick checklist
- Old URL inventory complete
- Redirect map built
- 301s implemented
- No redirect chains/loops
- Important pages mapped to best equivalents
- Canonicals updated
- Internal links updated
- XML sitemaps updated
- Robots.txt checked
- GSC monitored
- Logs reviewed
If you need a fast recovery plan
- Export top landing pages + top backlinks URLs.
- Crawl old and new site.
- Identify 404s and wrong redirects.
- Implement high-priority 301s.
- Fix canonicals/internal links.
- Update sitemaps and resubmit in GSC.
- Monitor daily.
If you want, I can also give you:
- a redirect audit spreadsheet template
- a step-by-step recovery plan for Shopify/Magento/WooCommerce
- or a Python script to crawl and compare old/new URLs