The decision rule
Start with the product's future, not its stock level. There are really only four situations, and each has a clear best practice.
- Temporarily out of stock (back within weeks or months): keep the page live.
- Seasonal or recurring product (comes back every year): keep the page live, and keep the URL.
- Permanently discontinued, with a close replacement: 301 redirect to the replacement.
- Permanently discontinued, with no real replacement: redirect to the closest relevant collection, or remove the page if it earns nothing.
Everything else in this guide is detail on those four cases.
Temporarily out of stock: keep the page live
A page that is already indexed and has earned links and rankings is an asset. Removing it throws away that history, and bringing it back later means starting again. Keep it live and make it useful while the product is unavailable.
- Show a clear "out of stock" message, not a disabled button with no explanation.
- Offer a back-in-stock alert so the visit still produces a lead. Klaviyo supports back-in-stock flows; see our Klaviyo guides.
- State the expected restock date if you know it.
- Suggest alternatives, such as related products or the parent collection, so shoppers have somewhere to go.
- Keep the title, description and content in place.
Shopify keeps unavailable products published by default, so you do not need to do anything to keep the page live. Make sure your theme and structured data mark the product as out of stock rather than showing an "in stock" status. Mismatched availability data can cause problems in Google Shopping and rich results.
Seasonal and recurring products
Christmas ranges, summer swimwear and limited drops return every year. The page you build this year is the page that ranks next year, so never delete it. Mark the product unavailable or out of stock out of season, add a note such as "Back for the next season", and refresh the content when it returns.
If you do not want out-of-season items cluttering the catalogue, you can remove them from collections or move them to the end of a collection, while leaving the product URL live.
Discontinued with a close replacement: 301 redirect
When a product is gone for good and a clear successor exists (the new version, a similar model, a direct substitute), a 301 redirect passes the old page's value to the new one and sends visitors somewhere useful.
- Redirect to the single closest product, not the homepage.
- Only redirect if the replacement genuinely serves the same need. Redirecting an unrelated page can be treated as a soft 404.
- On Shopify, a redirect will not take effect while the old product page still resolves, so unpublish or delete the product first, then add the redirect under Online Store, Navigation, URL Redirects.
- Update internal links so they point straight to the new page.
Our Shopify 301 redirect guide covers adding and bulk-importing redirects and the mistakes to avoid.
Discontinued with no replacement
Here you have three realistic options, in order of preference.
- Redirect to the most relevant collection, if the page has traffic or backlinks and that collection truly covers the same intent.
- Keep the page live as an "archived" product that explains it is no longer sold and lists alternatives. This works if the page still gets useful traffic and you can keep it genuinely helpful.
- Let it return a 404. For pages with no traffic, no links and no relevance, this is fine. Shopify serves a 404 for deleted or unpublished products and removes them from the sitemap.
Do not mass-redirect every discontinued product to the homepage. It frustrates visitors and search engines usually treat it as a soft 404, so the value is not passed on.
Variants, pre-orders and backorders
- Only some variants out of stock: keep the page live and clearly mark the unavailable options. Do not redirect.
- Pre-orders: if you can genuinely ship at a stated date, you can keep selling and say so. Make the page's availability and wording match what is actually true.
- Backorders (continue selling when out of stock): useful when you can restock quickly, but be honest about delivery times to avoid unhappy customers.
- Marketplace and Shopping feeds: update availability in your feed so Google Shopping does not advertise items you cannot sell.
Keep collections and internal links healthy
- Move out-of-stock products to the end of collections so shoppers see available items first. Shopify and many themes support sorting sold-out products last.
- Avoid linking prominently from navigation or the homepage to products you cannot sell.
- Remove or replace products in featured sections when they sell out.
- Check your collection pages are not filled mostly with unavailable products, which makes them thin and unhelpful.
These choices overlap with collection page SEO and product page structure. See our product page SEO guide.
Audit and monitor
- Export your products and filter by availability and by organic traffic (Search Console or analytics).
- Sort into the four cases above, starting with out-of-stock products that still get traffic.
- Apply the decision (keep, redirect, or remove) and record it.
- Crawl the site for broken internal links to removed products.
- Watch Search Console for new 404s and soft 404 reports after changes.
This is a standard part of our technical SEO audit.
Frequently asked questions
- Should I delete out-of-stock products on Shopify?
- Not if they are coming back. Keep the page live to preserve rankings and links. Delete or redirect only products that are permanently discontinued.
- Should I redirect an out-of-stock product to the homepage?
- No. Redirect to the closest relevant product or collection. Redirecting everything to the homepage is usually treated as a soft 404 and gives visitors nowhere useful to go.
- Does an out-of-stock product hurt my SEO?
- A temporary stockout does not by itself. Problems come from broken availability data, thin pages with no useful content, and leaving many permanently dead pages indexed. Mark availability correctly and keep the page helpful.
- What happens to a Shopify product page when I unpublish it?
- The storefront page returns a 404 and the product drops out of the sitemap. If it had traffic or links, add a 301 redirect to a relevant replacement.
Keep reading
- Is Shopify Good for SEO? An Honest Look at Strengths and Limits
- How to Improve Shopify SEO: A Step-by-Step Plan
- How to Fix Shopify's Duplicate Product URL Issue for Better Rankings
- Shopify Product Page SEO: How to Rank Without Duplicate Content
- Pet Profiles in Shopify Customer Accounts: What We Built for a Pet Brand