Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Search results link to dead products: how to find and fix it

CNV-325Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A search result is a link to a product page. If that page no longer exists, the link is dead. It may return a 404 (page not found), a 410 (gone), a server error, or a blank template with no product on it.

Common causes
  • A product was deleted or unpublished but the search index was not updated.
  • A product URL (slug) was changed and the index still holds the old one.
  • A third-party search app caches results and syncs only now and then.
  • A catalogue import replaced products and created new IDs and URLs.
  • A collection or category was restructured and old paths now fail.
  • Search results are cached by a CDN or page cache after the product is gone.

Why it costs you leads or sales

Where a search visit is lost
  1. SearchShopper types a product name
  2. ResultsStale index lists a removed product
  3. Product pageLink returns 404
  4. Add to cartNever reached
  5. CheckoutNever reached

The break happens after the click, so the search itself looks healthy.

Search clicks by landing resultExample numbers
Search clicks by landing result (example)Live product page: 18 %; Dead product (404): 1 %0714181Live product pageDead product (404)%

Example: of shoppers who click a search result, the share who go on to add to cart. Numbers are illustrative only.

How to check if your site has it

Check your search results by hand
  1. List your top search terms

    Use your analytics or the search report in your platform. Include old product names, discontinued lines and seasonal items.

  2. Search each term

    Run the search on your live site, not a staging copy.

  3. Open every result

    Check each one loads a real product with a price and a buy button. Watch for 404 pages, blank templates and redirects to the home page.

  4. Check the status code

    In your browser's developer tools, open the Network tab, reload the result page and look at the status of the first request.

  5. Crawl the results page

    Run a link checker on a search results URL such as /search?q=shoes. It will flag any result link that returns an error.

Check the status of a result linkbash
curl -s -o /dev/null -w "%{http_code}\n" -L https://example.com/products/old-product

How to fix it

Fix by platform
  1. Find dead products

    In Admin, go to Products and filter by status Draft or Archived. Those should not show in search.

  2. Redirect changed URLs

    Go to Online Store > Navigation > View URL redirects and add a redirect from the old product path to the live one.

  3. Check the search app

    If you use a search app, open its settings and run a manual re-sync or re-index of the catalogue.

Apache: redirect a moved product and mark one as gonehtaccess
Redirect 301 /products/old-shoe /products/new-shoe
Redirect gone /products/discontinued-shoe
Search result behaviour

Before

  • Index lists deleted and renamed products
  • Click lands on a 404
  • Shopper leaves the site

After

  • Index matches the live catalogue
  • Moved products redirect to the new page
  • Gone products no longer appear in results

How to confirm it's fixed

Confirmation checks
  • Repeat your top search terms and open every result.
  • Every result returns status 200 and shows a price and buy button.
  • Old URLs return 301 to the right product, or 410 if gone.
  • Search for a product you just unpublished and confirm it no longer appears.
  • Test in a private window so cached results do not hide the problem.
  • Run a link checker on a few search result pages and see zero errors.

How to prevent it happening again

Prevention
  • Set the search index to update on every product delete, unpublish or slug change.
  • Always create a redirect when you change a product URL.
  • Re-index after bulk imports and catalogue clean-ups.
  • Purge caches after big catalogue changes.
  • Review the search terms with the most clicks each month.
  • Add a link check of key search results to your release checklist.

How FunnelGuard handles this

Questions people ask

Why do my search results show products that no longer exist?

Search runs from an index, a stored copy of your catalogue. If the index is not updated when you delete or unpublish a product, it keeps returning the old URL. Re-syncing the index usually fixes it.

How do I stop deleted products appearing in site search?

Set products to draft or archived rather than leaving them live, then re-index your search. In a search app or plugin, turn on automatic updates for product changes. Also purge any page or CDN cache.

Should I use a 301 or a 410 for a product I no longer sell?

Use a 301 redirect if there is a close replacement or a relevant category. Use a 410 if the product is gone for good and nothing similar exists. Avoid redirecting everything to the home page.

Why does my Shopify search show archived products?

The default search should only show active products. If archived items still appear, a third-party search app is probably serving a stale index. Run a manual re-sync in the app's settings and check again.

How can I find which search results lead to a 404?

Search your top terms and open each result, or run a link checker on a search results URL. The Network tab in browser developer tools shows the status code. A scheduled check such as FunnelGuard's no_broken_links check can also flag failing links.

Do dead links in search results hurt SEO?

Internal search pages are often blocked from indexing, so the main harm is to user experience and sales. Dead product URLs that are linked elsewhere or indexed by Google can still waste crawl effort and lose rankings, so redirect them.

How often should I check my search results for dead links?

Check after every bulk import, catalogue clean-up or URL change, and on a regular schedule in between. Automated checks catch problems that appear between your manual reviews.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_broken_links.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.