Ecommerce Website Development in Pune: What to Do With Out-of-Stock, Discontinued and Deleted Product Pages So You Keep Your Traffic and Do Not Frustrate Buyers
A product page that is temporarily out of stock should usually stay live, say clearly that it is unavailable, and offer a way to be told when it returns. A product that is permanently discontinued should be handled by what the page is worth: redirect it permanently to a closely matching product or category if one exists, or let it return a proper "gone" response if it does not. What you should not do is delete pages silently, redirect everything to the homepage, or leave a page that looks available when it is not. This guide explains the decision for each case, how to build it on Shopify or WooCommerce, and how to avoid the Google Search Console errors that follow careless clean-ups. It is written for store owners and ecommerce managers working with an ecommerce website development team in Pune.
The question comes up for every store eventually. Seasonal ranges end, suppliers drop products, and a catalogue of 300 items quietly turns into 300 items of which forty cannot be bought. Each of those pages has a history: some rank in search, some have backlinks, some are bookmarked by customers, and some are linked from old WhatsApp messages and ads. How you treat them affects revenue and search visibility more than most owners expect.
First, sort the pages into four situations
"Out of stock" covers several different realities, and each has a different right answer.
- Temporarily out of stock. You expect it back soon, perhaps in days or a few weeks.
- Out of stock with no return date. You are not sure, it depends on a supplier or the season.
- Permanently discontinued, with a replacement. A newer model or a close equivalent exists in your range.
- Permanently discontinued, with no replacement. The product is gone and nothing close replaces it.
A fifth case sits alongside: seasonal products that disappear and return every year, such as Rakhi hampers, Diwali gift boxes or monsoon footwear. They need a different approach again, covered below.
Before choosing, gather facts for each product: has the page been getting organic traffic, does it have links from other sites, does it appear in Google Merchant Center or in ads, and does it have sales history? Search Console's Performance report (filter by page), your analytics landing-page report and a backlink tool of your choice will tell you. A page with no traffic and no links can be handled very differently from your best-selling product.
Case 1: Temporarily out of stock — keep the page, tell the truth
Keep the page live and indexable. Google's documentation for product structured data lets you state availability, and you should set it accurately. On the page itself:
- Make the unavailable state obvious. Replace the Add to Cart button with a disabled button or a "Notify me" option, rather than leaving an active button that fails at checkout.
- Show an expected date only if it is dependable. "Back in stock around 20 November" that slips three times damages trust more than "Back date not confirmed".
- Offer an email or WhatsApp alert for when it returns. We cover the build in our guide to back-in-stock and wishlist alerts.
- Show two or three in-stock alternatives, such as another colour or a similar item, so a visitor does not leave empty-handed.
- Keep the price, description and reviews, because they are what rank and what convert later.
In the page's Product structured data, set availability to https://schema.org/OutOfStock. If you accept orders for dispatch later, BackOrder is the accurate value, and for something not yet released, PreOrder. Only use these values if they are true, because Google can compare the markup with what the visitor sees and with your Merchant Center feed, and a mismatch can lead to your product being flagged or disapproved. If you run Shopping ads or free listings, make sure your feed's availability matches the page, and read our guide to Google Merchant Center for Indian stores for the feed side. For the structured data basics, see Product schema on Shopify and WooCommerce.
The soft 404 risk. Google's documentation describes a soft 404 as a page that returns a normal success status but shows what looks like an error or empty content, and Search Console reports these. Commentary from Google representatives, reported by SEO publications, has indicated that Google may treat a page that appears to be an unavailable product in a similar way and drop it from results. We cannot say how Google will treat any particular page, but the practical lesson is to keep an out-of-stock page rich. A page with a full description, reviews, specifications, alternatives and a clear notify option is a useful page that happens to be unavailable. A page that is mostly blank apart from "Sorry, this product is unavailable" looks like an error.
Do not noindex it just because it is out of stock, unless you know it will be gone for good. Noindexing a page that returns in two weeks costs you the time Google takes to reindex it.
Case 2: Out of stock with no return date
This is the most common and most neglected case. Give it a time limit. Decide a rule such as: "If it has been unavailable for ninety days with no confirmed restock, review it." At review you move it into case 3 or case 4, or you keep it with a clear "currently unavailable" state because it has real traffic and a real chance of returning.
Practical rules that help:
- Keep a simple stock review in your calendar monthly or quarterly. A spreadsheet export of products with zero stock, sorted by organic landing-page traffic, takes minutes and shows where the value is.
- Pause paid ads for products that cannot be bought. Spending on Shopping or Meta catalogue ads for unavailable items is a direct waste. Most platforms exclude out-of-stock items from feeds automatically when stock sync is working, so check that it actually works. If it does not, that is a bug to fix first.
- Hide from category pages or move to the end. Showing six unavailable items at the top of a category page makes the whole range look empty. Many themes let you sort available items first. On Shopify and WooCommerce, this is a setting or a small code change.
- Do not remove the page from the sitemap too eagerly. Pages that will return should remain.
Case 3: Permanently discontinued, with a replacement
When a close replacement exists, a permanent (301) redirect from the old product to the new one is usually the best option, particularly if the old page earned traffic or links. Google's documentation says a permanent redirect is a strong signal that the destination should be treated as the replacement, and it passes visitors to something useful.
The word "close" matters. Redirect to a product that a visitor who wanted the old one would accept: the next model, the same item in a new pack size, the updated version. Do not redirect a discontinued steel water bottle to a copper one because it is in the same category. Google's documentation on soft 404s notes that a redirect to an irrelevant page can be treated as one, and a visitor sent to something unrelated will leave.
Better still when practical: keep the old page live for a while with a clear message such as "This model has been replaced by the new version" and a prominent link. This keeps people who arrive from old bookmarks informed rather than silently moved, and lets you explain what changed. After a few months, when traffic to the old page has faded, replace the page with the redirect.
Build checklist for case 3:
- Choose the replacement and confirm it is genuinely relevant.
- Add a one-to-one 301 redirect (a redirect plugin on WooCommerce, or URL redirects in the Shopify admin).
- Update internal links, including menus, banners, blog posts and email templates, to the new URL, so people do not pass through a redirect on every click.
- Remove the old URL from the sitemap and from your product feed.
- Update the Google Business Profile product listings, social shops and any ads that pointed to it.
Case 4: Permanently discontinued, no replacement
Options depend on the page's value.
Page with no traffic and no links. Delete it and let it return a 404 or 410 status. Google's documentation treats these status codes the same way for crawling purposes: all 4xx errors apart from 429 are treated alike, and Google tells its indexing systems that the content does not exist. Some SEO practitioners prefer 410 as a clearer statement of intended permanence; Google's own documentation does not distinguish them, so either is acceptable and 404 is simplest on most platforms. What matters is that it is a genuine error status. A page that says "Not found" but returns status 200 is the soft 404 problem.
Then clean up around it: remove it from the sitemap, the feed, internal links and any internal search suggestions. Broken internal links to deleted products are a major source of crawl errors. Our guide to 404 errors, redirects and broken links explains how to find and fix them.
Page with traffic or links, no replacement. Here you have a choice, and each has a cost.
- Redirect to the closest category. Acceptable if the category is a reasonable next step for the visitor, because it sends them to a list of related products. Redirecting to the homepage is rarely helpful: a visitor who wanted a specific product and lands on a general homepage is likely to leave, and Google may treat that mass redirect as a soft 404.
- Keep the page as an archive. Leave it live with a clear "no longer available" message, its full description and a grid of related products. This keeps the page's ranking and gives visitors something useful. It suits products people continue to research, such as a model whose accessories or spares they still need.
- Let it go. Return 404 or 410 and accept the loss of that traffic. This is correct for products whose traffic had no commercial value.
Whatever you pick, apply it by rule, not product by product at random. A short written policy prevents a developer, a catalogue assistant or an agency from making different choices each time.
Seasonal products: the page that comes back
For items that return every year, such as festival hampers, keep the same URL for the product year after year instead of creating a new "2026" page. A stable URL accumulates links, reviews and ranking over successive years. Between seasons, show an honest "Not available until next season" state with an alert signup, and refresh the content before the season starts. Create a new URL only when the product is genuinely new. Our guide to festival-season campaign calendars covers the marketing side of timing.
Platform notes: Shopify and WooCommerce
Shopify. A product can be set to Active, Draft or Archived. Archived and draft products are not visible on your store, and their URLs return a not-found page. Setting a product to "Continue selling when out of stock" lets customers order items you do not have, which creates fulfilment problems unless you really do restock quickly, and it changes how availability is presented, so use it deliberately. For redirects, use Content, then Navigation, then URL Redirects, or bulk-import redirects from a CSV file. Check your theme: some show the "Sold out" button automatically, but not an alert signup, which needs an app or custom code. Confirm exact steps in the current Shopify documentation, as the admin changes often.
WooCommerce. Stock status can be In stock, Out of stock or On backorder. Products can also be moved to Draft or Private, or trashed, which affects the URL. Deleting a product in WordPress sends it to the trash and the URL returns a 404 once the product is removed. A redirect plugin handles 301s. Check that your SEO plugin updates the schema availability when stock changes, because some outputs are cached and show stale availability. Test by marking a product out of stock and viewing the page source and the Rich Results Test.
Custom builds. The product page should read a single source of truth for stock, and the structured data, button state and feed should all derive from it. We see mismatches mostly where each of these is updated by a different process.
Common mistakes
- Deleting products in bulk without checking traffic. A quiet clean-up can remove pages that bring in a large share of your organic visits.
- Redirecting everything to the homepage. Visitors are lost, and Google may treat the redirects as soft 404s.
- Leaving the Add to Cart button active. Customers order what you cannot ship, then you cancel and refund, which damages reviews.
- Showing "In stock" in structured data while the page says sold out. A mismatch with what visitors see can cause problems in listings.
- Letting unavailable products fill category pages. Browsing becomes frustrating.
- Forgetting the feed and ads. You keep paying to promote what cannot be bought.
- A 200 status on a "not found" template. This creates soft 404s.
- Redirect chains. Product A redirects to B, which later redirects to C. Update the first redirect to point straight to C.
- No policy. Each case is decided on the day by whoever is working.
A quarterly clean-up routine
Set aside two hours each quarter.
- Export all products with zero stock.
- For each, add organic clicks over the last twelve months from Search Console, and note whether a backlink exists.
- Sort into the four cases above.
- Apply the rule: temporary items stay with notify options; long-gone items with traffic move to redirect or archive; long-gone items without traffic are removed.
- Update the sitemap, feed and internal links.
- Check Search Console's Page indexing report one and four weeks later for new "Not found (404)" or "Soft 404" entries, and confirm they are the pages you removed on purpose. Unexpected entries mean something linked to those pages still exists.
If a figure matters to you here, such as how much traffic your old product pages bring, measure it from your own data. We do not quote an industry average because none is reliable for a Pune store of your size and category.
Frequently Asked Questions
Should I delete out-of-stock product pages?
Not if the product is temporary. Keep the page, mark it clearly as unavailable, set accurate availability in the structured data and offer a notification option. Delete only products that are permanently gone and have no traffic or links worth keeping.
Is it better to use a 301 redirect or a 404 for a discontinued product?
Use a 301 to a closely related product when one exists, because it keeps visitors and traffic. Use a 404 or 410 when nothing relevant exists. Google's documentation treats 404 and 410 alike, and redirecting to an unrelated page or the homepage can be treated as a soft 404.
Will out-of-stock pages hurt my SEO?
Not automatically. Problems arise when pages are thin, misleading or numerous enough to dominate category pages. A useful page with a full description, reviews, alternatives and an alert signup is generally fine.
What availability value should I use in Product schema?
Use OutOfStock for items you cannot currently supply, BackOrder if you accept orders to ship later, and PreOrder for unreleased products. Match your Merchant Center feed to what the page shows.
How long should I keep a discontinued product page live?
There is no fixed rule. If the page still receives traffic, keep it with a "no longer available" message and related products, or redirect it to the closest replacement once traffic fades. Review such pages every quarter.
Sources
- Google Search Central, "How HTTP status codes, and network and DNS errors affect Google Search", for the treatment of 404 and 410 as the same class of error, soft 404 definition and redirect types.
- Google Search Central, product structured data documentation and Merchant Center help on the availability attribute, for availability values and the need for feed and page to match.
- Commentary attributed to Google representatives on out-of-stock pages and soft 404 treatment is reported by SEO publications and is not stated in Google's own documentation; we treat it as indicative only.
- The four-case framework, the ninety-day review rule and the quarterly routine are our own working guidance. Platform admin screens change often, so confirm current steps in the Shopify and WooCommerce documentation.
About the author and next step
This guide was written by the ecommerce team at Govindani Infotech, a website design and development company at 2nd Floor, Landmark Plaza, 206 Satara Road, Parvati Paytha, Pune 411009. If you want help with stock states, redirects and feed clean-up on your store, see our ecommerce development service and SEO service pages, or contact the team on 092019 58274. Scope and pricing are confirmed after reviewing your catalogue.