Out-of-stock pages

Products go out of stock. Seasonally, permanently, or by accident. How you handle out-of-stock URLs affects SEO, user experience, and your ability to recover traffic when inventory returns. Most sites default to 404 or redirect, both are usually wrong.

The four scenarios

1. Temporarily out of stock

Product is coming back. You know when or roughly when.

Do:

Don't: 404, 301, or remove the page. You want to recover rankings + traffic when it returns.

2. Permanently discontinued, no direct replacement

Product is gone, nothing takes its place.

Do:

Don't: redirect to homepage (soft 404) or to an unrelated product.

3. Permanently discontinued, direct replacement exists

Old model replaced by new model (e.g., "Widget v2" replaces "Widget v1").

Do:

4. Temporarily out of stock, variation (size, color)

Product in stock but your specific variation isn't.

Do:

Why not 404?

A 404 tells Google the page doesn't exist. Google drops it from the index. If the product returns a month later:

Why not 301 to homepage / category?

Soft 404 risk. If every discontinued product redirects to your homepage, Google notices the pattern and classifies these as soft 404s. Same result as plain 404 but with worse user experience.

301 redirects should go to relevant, replacement URLs, not generic destinations.

Schema availability values

Match reality.

UX patterns that work

Restock notifications

"Enter your email, we'll let you know when this is back." Captures leads, keeps traffic.

Show alternatives prominently

Don't bury the "similar products" section. Out-of-stock page → direct to what's available → conversion saved.

"Last updated" date

"Checked: April 18, 2026, expected back in stock early May." Sets expectations.

Size/color out-of-stock indicators

Grey out unavailable options but show them, users know the product exists in their size/color and can request notifications.

Seasonal products

Halloween decorations, summer pool floats, seasonal products that disappear for months each year. Treat like temporarily out-of-stock; don't 404 or redirect. Keep URLs, content, and authority.

Sitemap handling

Common mistakes