Key Takeaways
- 301 means permanent — Google updates its index and transfers link authority to the new URL
- 302 means temporary — Google keeps the original URL in its index and holds the authority there
- Use 301 for almost everything: deleted products, changed URL handles, restructured collections
- Use 302 only for genuine temporary situations: A/B tests, seasonal swaps you’ll revert
- Shopify’s built-in redirect tool creates 301s by default — correct for most cases
- A redirect is a band-aid; fixing the broken link at its source is the proper fix
When a Shopify URL breaks or moves, you have two redirect options: 301 and 302. Pick the wrong one and you either lose the link authority you’ve built on that URL, or you prevent Google from updating its index. Both outcomes are bad.
Most guides will tell you to always use 301 and move on. That’s mostly correct, but the reasoning matters — because understanding why will tell you the few cases where 302 is right, and also reveal a larger truth: the best solution to a broken link usually isn’t a redirect at all.
What 301 and 302 Actually Tell Google
HTTP status codes are instructions from your server to whoever requested a URL. When a browser or Googlebot requests a URL:
301 (Moved Permanently): “This URL has moved to a new location permanently. Update your records — the new URL is the one you should be using from now on.” Google interprets this as: index the new URL, transfer ranking signals from the old one, stop crawling the old URL over time.
302 (Found / Moved Temporarily): “This URL has temporarily moved. Keep the original URL in your records — we’ll be back.” Google interprets this as: keep the original URL in the index, don’t transfer authority to the destination, continue crawling the original URL.
The distinction matters because link equity — the ranking power accumulated by a URL through backlinks and internal links — is handled differently in each case.
How Link Equity Flows (or Doesn’t)
With a 301, Google transfers approximately 90% of the original URL’s link equity to the destination. If /products/classic-boots had backlinks from ten shoe review sites, those links’ ranking value moves to /products/womens-classic-leather-boots when you set up a 301.
With a 302, Google holds the link equity at the original URL. It assumes you’ll be sending traffic back there eventually, so it keeps the authority parked. If you never revert the redirect, that authority sits in limbo — not helping your new URL, potentially fading over time.
Using 302 when you mean 301 is one of the most common ways Shopify merchants accidentally leak link equity.
When to Use 301
Deleted Products
A product that’s been permanently removed should have a 301 redirect to the most relevant alternative — the closest equivalent product, or the parent collection if nothing comparable exists.
Don’t redirect to your homepage. Redirecting to an unrelated page like your homepage creates a soft 404 — Google recognises the irrelevance and doesn’t transfer authority.
Changed URL Handles
If you update a product’s URL handle (from /products/boots to /products/womens-ankle-boots), Shopify automatically creates a 301 redirect. This covers the product page URL. But internal links in your blog posts, product descriptions, and pages still point to the old URL — those need to be updated directly.
Restructured Collections
When you reorganise your collection taxonomy, set up 301 redirects from old collection URLs to new ones before removing the old URLs.
Domain Migrations
Moving from one domain to another? Every URL on the old domain should have a 301 to the corresponding URL on the new domain. This is the most important use of 301 redirects — done correctly, it preserves most of your domain’s accumulated authority.
Merging Duplicate Pages
If you have two pages covering the same topic and want to consolidate them, 301 the weaker one to the stronger one. This concentrates link equity rather than splitting it.
When to Use 302
The genuine use cases for 302 are narrow:
A/B Testing
If you’re testing two versions of a product page, a 302 from the original to the variant tells Google to keep the original indexed and not transfer authority to the test variant. When the test ends and you revert, nothing needs to change in terms of SEO.
Seasonal Redirects You Plan to Revert
If you redirect /collections/winter-coats to a seasonal landing page during winter but plan to restore the collection at that URL in spring, a 302 is technically more accurate. In practice, most merchants don’t set up this level of nuance and just use 301 — which is fine for short durations.
Out-of-Stock Products You’ll Restock
If a product is temporarily out of stock and you’re redirecting to a “notify me” page or an alternative, a 302 keeps the original product URL in Google’s index — useful if you expect the product to return.
Login-Required Pages
If unauthenticated users are temporarily redirected to a login page, that’s a 302.
How to Set Up Redirects in Shopify
Via Shopify Admin (301 only)
- Go to Online Store → Navigation → URL Redirects
- Click Add URL redirect
- Enter the old URL in “Redirect from” (e.g.,
/products/old-boots) - Enter the new URL in “Redirect to” (e.g.,
/products/womens-ankle-boots) - Save
Shopify’s built-in tool only creates 301 redirects. There’s no option to choose 302 here.
Via Theme Code
For more control — including 302 redirects or wildcard rules — you’d need to modify your theme’s Liquid files or use a redirect app. This is rarely necessary for standard Shopify use cases.
The Bigger Picture: Redirects Are a Band-Aid
Here’s what most redirect guides don’t say: a redirect should be your last resort for broken links, not your first move.
When a link in your store is broken — a blog post pointing to a deleted product, a product description linking to a removed page — the cleanest fix is to update the link in the content itself. Go to the blog post, find the broken link, change it to the correct URL. Done.
A redirect adds a hop to every request. A small number of redirects is fine. But stores that accumulate redirects over years end up with chains, loops, and hundreds of redirects that slow down crawling and add latency for visitors.
More importantly, if you only add a redirect without updating the source link, the broken link still exists in your content. You’ve hidden the symptom but not fixed the cause.
Relink finds every broken link in your Shopify store — across products, collections, blog posts, and pages — and shows you exactly which content needs updating. Fix the link at the source, and you may not need a redirect at all.
Quick Reference
| Situation | Redirect type |
|---|---|
| Product permanently deleted | 301 → closest relevant product or collection |
| Product URL handle changed | 301 (Shopify does this automatically) |
| Collection restructured or deleted | 301 → most relevant new collection |
| Domain migration | 301 → corresponding new URL |
| A/B test variant | 302 |
| Seasonal redirect you’ll revert | 302 |
| Temporarily out-of-stock product | 302 |
| Redirecting to homepage | Neither — fix the link instead |