Shopify 301 redirects guide: bulk imports, migrations, SEO

A Shopify 301 redirect is the quiet little rule that decides whether a deleted product costs you traffic or costs you nothing. Say you kill off an old collection, rename a product handle, or migrate a store onto a fresh theme. The old link is still out there. It’s in Google’s index, in someone’s newsletter, on a supplier’s site, maybe printed on a hangtag. Without a redirect, every one of those clicks lands on a dead 404 page. With one, they land exactly where you want them, and most of the ranking power that old URL earned carries over.
We build Shopify apps for a living, so we see broken URL cleanup go wrong constantly. Merchants delete a few hundred products, feel productive, and then watch organic traffic sag two weeks later with no idea why. The fix is boring and permanent. Set the redirect, move on. This guide walks through the whole thing: what a 301 actually does, how to add a single URL redirect, how to bulk-load a CSV for a migration, how Shopify’s automatic prompt works, and the mistakes that quietly tank your SEO.
In this post
- What a 301 redirect is and when you need one
- How to add a single URL redirect in Shopify
- Bulk redirects with a CSV
- Shopify’s automatic redirect
- The mistakes that kill your SEO
- How to verify a redirect works
- FAQ
- Related reading
What a 301 redirect is and when you need one
A 301 redirect is a permanent instruction that tells browsers and search engines a page has moved for good, sending anyone who hits the old URL straight to a new one. The 301 is the status code for “moved permanently.” That word, permanently, is doing real work. Search engines treat a 301 as a signal to pass most of the old page’s link equity (the accumulated ranking value from all the links pointing at it) to the destination, and to swap the old URL for the new one in their index over time.
Compare that to a 302, which means “moved temporarily.” A 302 keeps the old URL as the canonical one and passes ranking value more grudgingly. For almost everything a store owner does, you want the 301. When would you reach for one? Here are the common triggers:
- Deleted products. A discontinued item leaves a live URL behind. Redirect it to the closest matching product or its parent collection.
- Changed handles. Renaming a product, collection, page, or blog post changes its URL. The old path needs to point at the new one.
- Store migrations. Moving onto Shopify (or restructuring an existing store) usually rewrites hundreds of URL patterns at once.
- Duplicate cleanup. Two pages competing for the same keyword split your ranking. Redirect the weaker one into the stronger one.
- Merged collections. Folding three thin collections into one strong page? Redirect the old three.
One thing worth being blunt about: a redirect is not a delete button for SEO problems. It moves the value; it doesn’t create it. If you redirect a page nobody ever linked to, you get almost nothing back. But if you delete a product that ranked for a decent keyword and skip the redirect, you throw that ranking in the bin. Which of those two mistakes is more common? The second, by a mile.
How to add a single URL redirect in Shopify
For a one-off (a single deleted product, a renamed page), Shopify has a built-in tool and you don’t need anything extra. Here’s the path:
- In your Shopify admin, go to Online Store.
- Click Navigation.
- Click URL Redirects (near the top of that page).
- Click Create URL redirect.
- In Redirect from, paste the old path (for example, /products/old-blue-hoodie).
- In Redirect to, enter the new path, or type / to send it to the homepage (please don’t, more on that below).
- Save.
A few practical notes. You enter paths, not full domains, so /collections/summer and not the whole https URL. The redirect goes live almost immediately. And you can point the destination at a product, a collection, a page, or a blog article, whatever is the best next stop for that visitor. This built-in flow is fine for a handful of changes. It gets painful fast once you’re talking about dozens or hundreds, which is exactly where a CSV comes in.
Bulk redirects with a CSV
When you’re clearing out a big batch (a seasonal purge, a full migration, a duplicate-URL cleanup), doing redirects one at a time is a waste of an afternoon. Shopify lets you import URL redirects from a CSV file, so you build the whole list once and upload it in a single pass. The file itself is simple: two columns, one row per redirect, old path in the first column and new path in the second.
The tricky part isn’t the upload. It’s producing a clean, correctly formatted file with the right paths in the right columns and no typos, because one bad row can send a live URL somewhere silly. That’s the exact chore our free redirect generator exists to kill. You feed it your old and new URLs, it builds the Shopify-ready CSV, and you import it as one job. If you’re about to remove a large batch of listings first, pair it with our guide on how to bulk delete products in Shopify so the deletes and the redirects happen together instead of leaving a gap where dead links live.
Migrations deserve extra care. When you move a store, whole URL patterns change at once, and you want a mapping that catches the old structure. Old blog paths, old collection slugs, old product handles, the lot. Build that map before you flip the switch, not after traffic already cratered. We’ve watched too many migrations where the redirects were an afterthought bolted on three weeks late.
Shopify’s automatic redirect
Shopify actually helps you here, and a lot of merchants miss it. When you change the handle of a product, page, collection, or blog post, Shopify shows a small prompt asking whether you want to create a URL redirect from the old handle to the new one. Say yes. Please, say yes. That single checkbox saves you from the most avoidable dead link there is: the one you created yourself by renaming something.
Why does it matter so much? Because the old handle is often the version Google has indexed and other sites have linked to. If you rename a product from “blue-hoodie” to “midnight-blue-hoodie” and skip the prompt, every existing link to the old handle breaks the instant you save. Tick the box and the old path keeps working, quietly forwarding to the new one. The catch: the prompt only appears at the moment you change the handle. Ignore it and you’ll have to add the redirect by hand later, assuming you remember the old handle at all.
One honest limitation. The automatic prompt covers handle changes on individual items. It does not magically fix a bulk deletion or a platform migration. For those you’re back to the manual flow or, better, the CSV route above.
The mistakes that kill your SEO
Redirects are simple to set up and shockingly easy to botch. These are the ones we see wreck rankings.
Redirect chains
A chain is when URL A redirects to B, which redirects to C, which redirects to D. Each hop leaks a little value and adds load time. Redirect straight to the final destination instead. If you renamed a product twice, don’t stack two redirects; point the very first old URL at the current live page.
Redirect loops
A loop is when A points to B and B points back to A. The browser bounces forever and the visitor sees an error. This usually happens after a rename gets reversed or a duplicate redirect gets created by accident. Always check that your destination isn’t itself redirecting somewhere else.
Sending everything to the homepage
This is the big one, and it’s lazy. When a hundred deleted products all get redirected to the homepage, search engines treat those as “soft 404s” and pass along little to no value. Worse, a shopper who clicked a link for a specific red dress lands on your front page, shrugs, and leaves. Every redirect should go to the closest matching page. A red dress goes to another red dress or the dresses collection, not to the homepage.
Forgetting to redirect after deleting
The classic. You clear out old stock, feel great, and never set a single redirect. Now every indexed URL for those products is a 404. This is why we always tell people to plan the redirects before the delete, not after.
So where should each type of dead URL actually point? Here’s the cheat sheet we keep coming back to.
| Scenario | Best redirect target |
|---|---|
| Discontinued product, similar item exists | The closest matching product |
| Discontinued product, nothing similar | Its parent collection |
| Renamed product or collection handle | The new URL (use the auto prompt) |
| Two duplicate pages competing | The stronger page of the two |
| Merged collections | The single combined collection |
| Retired blog post, topic still relevant | The updated or replacement post |
| Out-of-stock but returning soon | Leave it live, do not redirect |
That last row matters. If an item is coming back, don’t redirect it. Keep the page up so it holds its ranking and its reviews. A redirect is for things that are gone for good.
How to verify a redirect works
Setting a redirect and assuming it works is how loops and chains sneak in. Check it. The fastest way is to paste the old URL into our free URL analyzer, which shows you the status code and the final destination in one shot. You want to see a single 301 that lands on the correct page, not a 302, not a chain of three hops, not a 404.
Prefer to eyeball it yourself? Open the old URL in a private browser window and confirm it lands on the right place with no error. Then, after a bulk job, run your live URLs through our sitemap checker to catch any dead links your redirects missed. A clean sitemap is also what you feed Google Search Console, and it’s the same file that powers a healthy Google Shopping feed, so it’s worth keeping tidy for more than one reason.
While you’re auditing the technical side of a store, two neighbors of redirects are worth a look: your structured data and schema markup (so search engines read your pages correctly) and your product image setup (which shapes how those pages convert once the traffic actually arrives). Redirects protect the traffic; those two help you keep it. If your setup relies on page-builder templates, mismatched URLs there are a frequent source of dead links, so it helps to know which of the Shopify page builder apps keep clean handles.
Redirects also connect to a bigger structural question: how you organize variants and near-duplicate products in the first place. If you’re weighing whether to run one product with many variants or several separate products for SEO, that decision shapes how many URLs you’ll ever need to redirect. Fewer stray URLs, fewer redirects to maintain. And if variant images are part of that setup, our complete guide to Shopify variant images covers how to keep media clean on a single URL instead of spawning extra product pages you’ll later have to clean up.
We build Shopify apps at Craftshift, which means URL structure, variants, and redirects are the stuff we stare at all day. If you’re deciding how to group or split products (a choice that quietly determines your redirect workload for years), our two apps handle the two halves of that problem.
FAQ
Does Shopify support 301 redirects?
Yes. Shopify’s built-in URL Redirects tool under Online Store then Navigation creates 301 (permanent) redirects. You add an old path and a new path, and Shopify handles the rest. You can add them one at a time in the admin or import many at once from a CSV file.
What is the difference between a 301 and a 302 redirect?
A 301 is permanent and passes most of the old page’s ranking value to the new URL, which then replaces the old one in search results. A 302 is temporary and keeps the old URL as canonical. For deleted products, renamed handles, and migrations, you almost always want the 301.
Can I bulk import redirects in Shopify?
Yes. Shopify lets you import URL redirects from a CSV file with the old path in one column and the new path in the next. This is the fast way to handle migrations and large cleanups. Our free redirect generator builds a correctly formatted, Shopify-ready file so you can upload the whole batch in one job.
Should I redirect deleted products to the homepage?
No. Sending deleted products to the homepage often gets treated as a soft 404 and passes little value, and it frustrates shoppers who wanted a specific item. Redirect each deleted product to the closest matching product, or if none exists, to its parent collection. Match intent, not convenience.
Do 301 redirects hurt SEO?
A single, direct 301 to a relevant page is good for SEO because it preserves ranking value and prevents dead links. Problems come from redirect chains, loops, and mass-redirecting to the homepage. Keep each redirect to one hop, point it at the most relevant page, and check the status code afterward.
How do I check if a redirect is working?
Paste the old URL into a URL analyzer to see the status code and final destination. You want a single 301 that lands on the correct page, not a 302, a chain, or a 404. You can also open the old URL in a private browser window to confirm it forwards cleanly with no error.
Does Shopify redirect automatically when I rename a product?
Shopify shows a prompt offering to create a URL redirect when you change a product, page, collection, or blog handle. If you accept, the old handle forwards to the new one automatically. The prompt only appears at the moment of the change, so if you skip it you will need to add the redirect manually later.
Related reading
- How to bulk delete products in Shopify (without breaking SEO)
- The complete guide to Shopify schema markup
- Shopify Google Shopping feed optimization
- Separate products vs variants: the SEO tradeoff
- The complete guide to Shopify variant images
One redirect takes thirty seconds. A store’s worth of them, done wrong, takes months of lost traffic to notice and longer to claw back. So the next time you delete a product, ask yourself one question before you click the button: where should this URL go when it’s gone?