Your store's best-selling jacket sold out on Tuesday. You hid the product. Google had that URL indexed, two blogs linked to it, and your November email campaign pointed right to it. Now it's a 404. Congratulations, you just quietly erased weeks of Shopify SEO work.

Out-of-stock products and Shopify SEO don't mix well by default. Here's how to make them get along.

🎯 Quick Summary

  • Hiding a product without a redirect turns every inbound link into a 404 and gives Google a reason to drop your ranking.
  • A 301 redirect from the old product URL to a relevant collection keeps your link equity alive while the product is gone.
  • Webhooks can miss events on busy sale days. A daily cron re-check is your backup plan.
  • Hide Out of Stock (Pro) automates all of this, both directions, with no manual cleanup required.

🔎 SEO-Safe 301 Redirects When a Product Is Hidden

When you set a Shopify product to Draft, the product URL goes dark. Any visitor or Googlebot landing there gets a 404. Google reads that as "page is gone forever" and starts removing it from the index.

That URL had value. Maybe it ranked for a search term. Maybe other sites linked to it. That value disappears the moment the product hides without a redirect, and this is where out-of-stock products quietly hurt Shopify SEO the most.

The manual fix works: go to Online Store > Navigation > URL Redirects and create a 301 from the old product URL to a relevant collection. Fine for one product. Completely unsustainable if you're cycling dozens in and out every week.

There is a second trap nobody mentions. When the product comes back in stock, you must delete the redirect. Forget that step, and your live, active product page is redirecting visitors somewhere else. Shopify will not say a word.

Hide Out of Stock adding an SEO-safe 301 redirect when a Shopify product is hidden
One less thing to forget at 11pm after a flash sale.

Hide Out of Stock's Pro plan handles both ends automatically. The moment a product is hidden, the app creates a 301 redirect to the product's first collection. The moment it is restocked and restored to Active, the redirect is removed. Both directions, zero manual steps.

💡 Pro tip: Redirecting a hidden product to your homepage instead of a related collection is flagged by Google as a soft 404. It passes zero link equity. Always point to the closest matching collection or a similar product.

If sold-out items are also disrupting your collection order, stopping out-of-stock products from rising to the top of a Shopify collection is the complementary fix.

📅 The Daily Safety-Net Cron So Nothing Slips Through

Webhooks power Hide Out of Stock's real-time automation. Shopify fires an inventory event, the app catches it, the product is hidden within seconds. Normal path.

But webhooks are not infallible. During high-traffic sale events, Shopify can delay or drop them entirely. One missed webhook means a sold-out product is still showing "Add to cart" for inventory you no longer have.

SEO-safe redirects for hidden Shopify products shown on mobile
Works on mobile too, since that's where most of your customers are anyway.

Hide Out of Stock runs a daily background job that re-checks every product it manages. If a webhook was missed and a restocked product is still sitting in Draft, the cron finds it and fixes it. If a sold-out item slipped through and is still showing live, same deal.

It is a quiet, boring feature. That is entirely the point.

For stores that want to go further with catalog automation, scheduling automatic collection re-sorts is a natural complement to this setup.

How Hide Out of Stock works

📦

Inventory hits zero

Shopify fires a real-time inventory webhook

🙈

Product hidden instantly

Set to Draft within seconds, 301 redirect created (Pro)

🔄

Restocked? Restored

Back to Active automatically, redirect removed

📅

Daily cron re-check

Catches anything the webhook missed

Hide Out of Stock icon

Stop losing SEO value every time something sells out

Hide Out of Stock auto-hides products when inventory hits zero, creates 301 redirects so your URLs never 404, and restores everything the moment stock returns.

Try Hide Out of Stock for free →

Everything you get, at a glance:

  • Real-time hiding and restoring via Shopify inventory and product webhooks
  • One-click full catalog scan on install catches everything already out of stock
  • SEO-safe 301 redirects created and removed automatically (Pro plan)
  • Daily cron re-check as a safety net for any missed webhook events
  • Tag exclusions keep pre-order and coming-soon products always visible
  • Only touches what it hid. Your manually set Drafts are never touched.
List of hidden Shopify products with hide time in Hide Out of Stock
A dashboard showing exactly what's hidden and when. No more guessing.

🚀 Why This Is Worth Your Attention

Most Shopify stores leak SEO value every time a product sells out. Not because anyone made a mistake. Because Shopify has no built-in tool that hides a product, redirects the URL, and restores everything when stock returns.

You can stitch together Shopify Flow, manual URL redirects, and a calendar reminder to check hidden products. Or you can install one app that handles all three. If you're still weighing whether to hide or show out-of-stock products on your Shopify store, that is a worthwhile question to settle first. But the redirect piece should be non-negotiable either way.

The Pro plan is $19.99 per month with unlimited orders and a 7-day free trial. For any store with organic traffic, the first time it saves a ranked URL from becoming a 404, it has already paid for itself.

Frequently Asked Questions ❓

Always hide, never delete. Deleting a product destroys the URL permanently, including any backlinks and SEO authority it built. Setting a product to Draft keeps it recoverable. Add a 301 redirect while it's hidden and you preserve most of that value until the product returns.
Google removes the page from its index. Any ranking it had resets to zero. Backlinks stop passing value. If that URL was earning organic traffic, you lose it immediately. A 301 redirect to a relevant collection preserves most of that value and keeps the URL from becoming a dead end.
No. Shopify only creates a redirect when you delete a product, not when you set it to Draft. Hiding a product leaves the URL as a live 404 unless you add a redirect manually or use an app like Hide Out of Stock, which handles it automatically on the Pro plan.
Shopify has no native sort-by-stock feature. A collection sorting app can push sold-out items down using inventory-based rules. If you want sold-out products removed from collections entirely rather than just demoted, hiding them is the cleaner approach and it protects your SEO at the same time.
A soft 404 is when Google follows a redirect and lands on a page that doesn't match the original URL's topic. Redirecting a hidden product to your homepage is a classic example. Google flags it as unhelpful, passes no link equity, and may still mark the original URL as effectively gone. Always redirect to the closest matching collection or a similar product.
Webhooks are fast but not guaranteed. Shopify can delay or miss them during high-traffic events like sales or flash drops. The daily background job re-checks every managed product and corrects anything the webhook missed, so no product stays incorrectly hidden or incorrectly visible for more than 24 hours.
CW

CartWorksWe build Shopify apps that quietly make stores more money.

Try Hide Out of Stock for free →