How to redirect deleted products automatically
When you delete a product or a collection, its old link becomes a 404. The app can create a redirect for it the moment you delete it, so visitors land on a related page instead. This article shows how to turn it on and choose where visitors go.
Before you start
- The setting is off until you turn it on.
- It only applies to products and collections deleted after you turn it on.
Turn it on
- In the app, open Redirects.
- In Redirect deleted products automatically, turn on Redirect deleted products and collections.
- Under Send visitors to, choose a destination.
- Select Save in the bar at the top. A toast says "Settings saved".
Where visitors go
| Option | What happens |
|---|---|
| The product's first collection | Recommended. Visitors land on the first visible collection that held the product, so they see similar products. If the product was in no collection, they go to /collections/all. |
| All products (/collections/all) | Every deleted product goes to your full catalogue. |
| The first collection, then an AI suggestion | The redirect to the first collection is created right away. Then AI suggests a closer page, and you choose whether to use it. It costs 1 AI write per redirect. |
| Don't redirect, leave a 404 | No redirect is created for deleted products. Deleted collections still go to All products (/collections/all). Fine when nothing in your store replaces the product. You can still redirect each link from SEO audit. |
| Home page | Not recommended. Google may treat many links sent to the home page as broken links. |
The AI option is turned off, with a note, when AI is not available right now. When AI is not available, the first collection is used and no AI suggestion is made. See How AI-suggested redirect targets work.
Rules the app follows
- Deleted collections always go to All products (
/collections/all). - Draft and archived products are not redirected. Only products that were visible in your store are.
- New redirects never chain. If the page a new redirect would point to already redirects somewhere else, the new redirect goes straight to the final page. The app does not update existing redirects when their target page is deleted later. Check Redirects or Shopify's URL Redirects list if you delete a page that other redirects point to.
- The app never removes a redirect by itself. You undo them yourself.
See what was created
The Redirects page lists every redirect the app created, with these columns.
| Column | What it shows |
|---|---|
| From | The old link |
| To | Where it goes now |
| Why | Product deleted, Collection deleted, 404 fix, Broken link, URL cleanup or URL cleanup undone |
| Created | The date |
Each row has an Undo button for 30 days, except URL cleanup redirects, which you undo from History. On a redirect you changed with Use suggestion, Undo points it back to the previous page instead of removing it. See How to undo a redirect. If you open the page of a deleted product in the app, it shows where the old link was sent.
Shopify's redirect limit
Shopify stops adding redirects at 100,000 per store. The app shows a banner from 90,000: "Your store has N of 100,000 URL redirects". Automatic redirects pause at 99,000 so there is room for the ones you add yourself. Use Manage all redirects in Shopify to remove old ones you no longer need.
[!INFO] Redirects take effect in Shopify only when the old link is broken. If you recreate a page at the old address, the page opens and the redirect is not used.
Related articles
- How the 404 log works
- How to create a redirect for a broken link
- How AI-suggested redirect targets work
- How to undo a redirect
- How to see what changed and undo it in History
← How to create a redirect for a broken link How AI-suggested redirect targets work →