- Use a 301 redirect when a URL moves permanently, so shoppers and search engines reach the right page and most ranking signals follow.
- For discontinued products, redirect to the closest replacement or category, or keep the page live with alternatives if it still has value.
- Keep a redirect map, avoid chains and loops, and check redirects after every migration or URL change.
Why do redirects matter in eCommerce?
Stores change URLs often: products are discontinued, collections are renamed, platforms change, URL structures are cleaned up. Every old URL may have:
- Rankings in search results.
- Backlinks from other sites.
- Bookmarks and links in old emails.
- Ad and feed links.
Without redirects, those visitors land on a 404 page, and search engines eventually drop the URL along with its value. A 301 redirect sends both users and search engines to the new location.
Which redirect type should you use?
| Type | Meaning | Use for |
|---|---|---|
| 301 (permanent) | URL moved for good | Discontinued products, renamed pages, migrations |
| 302 (temporary) | URL moved for now | Short-term changes, such as a temporary page |
| 307/308 | Temporary or permanent, keeps request method | Mostly technical cases |
| Meta refresh or JavaScript redirect | Redirect after page loads | Avoid where possible |
For SEO, use server-side 301 redirects for permanent changes. Shopify and WooCommerce (with a plugin or server rules) support them.
How should you handle discontinued products?
Not every discontinued product needs a redirect. Decide based on value:
| Situation | Best approach |
|---|---|
| Direct replacement exists (new model) | 301 to the replacement product |
| No replacement, similar products exist | 301 to the most relevant category or subcategory |
| Product still gets search traffic or links, may return | Keep the page live, mark unavailable, show alternatives |
| No traffic, no links, no relevant alternative | Let it return 404 or 410 |
Avoid redirecting everything to the homepage. Search engines may treat irrelevant redirects like a “soft 404”, and shoppers get confused. See out-of-stock products SEO.
What about collection and URL structure changes?
When you rename collections or change URL structures:
- Map every old URL to its new equivalent one to one.
- Update internal links to point directly to new URLs, so you do not rely on redirects internally.
- Update XML sitemaps to list only new URLs. See XML sitemap.
- Update product feeds and ad final URLs.
How do you handle migrations?
Platform and domain migrations are where redirects matter most:
- Crawl the old site and export all URLs, plus URLs from Search Console, analytics and backlink tools.
- Build a redirect map: old URL, new URL, type.
- Prioritize high-value URLs: those with traffic, revenue and links.
- Implement and test on staging before launch.
- Check after launch: crawl old URLs to confirm they redirect correctly, monitor Search Console for 404s.
See WooCommerce to Shopify migration and Shopify Plus migration checklist.
What problems should you avoid?
- Redirect chains: A → B → C. Each hop slows users and can lose signals. Update redirects so A points directly to C.
- Redirect loops: A → B → A. These break the page entirely.
- Mass homepage redirects: often treated as soft 404s.
- Redirecting to pages that later get deleted: review old redirects when removing pages.
- Forgetting parameters and variants: check how your platform handles URLs with query parameters.
Worked example: cleaning up after a catalog refresh
(Illustrative numbers.) An apparel store discontinued 600 products and renamed 40 collections over a year without a redirect plan. Search Console shows rising 404 errors, and some old product URLs still have backlinks.
Actions:
- Export 404 URLs from Search Console and backlink data.
- Find 180 discontinued products with traffic or links. Redirect 70 to direct replacements and 110 to the most relevant subcategory.
- Let 420 low-value product URLs return 404.
- Redirect the 40 old collection URLs to their renamed versions.
- Fix 25 redirect chains created by earlier changes.
- Update internal links and sitemaps.
Over the following weeks, 404 errors from important URLs drop, and several categories regain rankings they had lost.
Checklist: eCommerce redirects
- [ ] 301 redirects used for permanent URL changes
- [ ] Discontinued products assessed by traffic, links and alternatives
- [ ] Replacements or relevant categories used as redirect targets
- [ ] No mass redirects to the homepage
- [ ] Redirect map maintained for all changes
- [ ] Internal links updated to final URLs
- [ ] Sitemaps list only live, final URLs
- [ ] Redirect chains and loops checked and fixed
- [ ] Feeds and ad URLs updated
- [ ] 404 errors in Search Console reviewed monthly
FAQ
Do 301 redirects pass SEO value?
Search engines generally treat a 301 redirect as a strong signal to transfer the old URL’s ranking signals to the new one, especially when the new page is a relevant replacement.
Should I redirect all out-of-stock products?
No. Temporarily out-of-stock products should stay live. Only redirect products that are permanently discontinued, and only when a relevant replacement or category exists.
How long should I keep redirects in place?
As long as practical, ideally permanently for important URLs, since old links and bookmarks can keep sending visitors for years.