deindexpages.com
Page types

Deindexing internal search result pages

Your own site search generates a new URL for every query anyone types. Left alone, those result pages can pile up in the index as thin, near-duplicate pages, and in some cases be abused by spammers. A clear policy takes an afternoon to implement.

Why search result pages cause trouble

  • Unbounded URL space. Every query string is a new URL, such as /?s=anything or /search?q=anything.
  • Thin and overlapping content. Result pages repeat snippets from pages that already exist in the index.
  • Abuse. Bad actors link to search URLs containing spammy text. If those pages are indexable, they may display that text under your domain.
  • Crawl waste. Googlebot spends requests on pages that offer nothing unique.

There are exceptions. Some marketplaces intentionally build indexable, curated query landing pages. That is a product decision, not an accident. This article is about the accidental case.

LayerActionWhy
TemplateOutput noindex on all search result templatesRemoves existing and future result pages after recrawl
LinksDo not link to search result URLs from indexable pages (except the search form)Reduces discovery
SitemapNever list search result URLsA sitemap is a discovery signal
Optional laterrobots.txt Disallow for the search pathStops crawling once the URLs are out of the index
Zero-result pagesReturn a 404 or noindexAvoids soft 404s

Step by step

  1. Identify the pattern. Open Search Console's Page indexing report or search Google for site:yourdomain.com inurl:search, inurl:?s= or whichever pattern your platform uses. The operator is a rough check, not a full inventory.
  2. Add noindex to the search results template. In WordPress, most SEO plugins have a setting for search results. In custom code, send <meta name="robots" content="noindex"> or the X-Robots-Tag header on every response from the search route.
  3. Confirm crawlability. Make sure robots.txt is not blocking the search path yet. If it is, remove the rule temporarily so Google can see the noindex.
  4. Wait for the recrawl. Track progress in the Page indexing report. Pages should move to "Excluded by 'noindex' tag".
  5. Optionally block crawling later. Once the URLs have left the index, add a Disallow for the search path to reduce load. Keep the noindex in the template as a fallback.
  6. Handle spam URLs. If strange query strings are indexed, the same noindex fixes them. If urgent and sensitive, use a prefix removal in the Removals tool for the search path as a stopgap.

Examples of what to match

/search?q=term
/?s=term
/catalogsearch/result/?q=term
/index.php?route=product/search&search=term

Different platforms name these differently. Find yours by running a search on your site and reading the URL.

Keeping the user experience intact

Noindex does not affect your on-site search function. Visitors still search and get results. The only change is that search engines stop listing those URLs. Link equity is not a concern for the result pages themselves, but make sure products and articles are reachable from category pages and your sitemap, so they do not depend on result pages for discovery.

Zero-result and error pages

A query with no results should not return a normal 200 page that says "no results". That pattern resembles a soft 404. Either return a 404 status for empty results, or keep the noindex on all result pages, which covers them. See 404 vs 410 for how Google treats error statuses.

Autocomplete and suggestion pages

If your site generates landing pages from popular queries, treat them as editorial pages with their own content, titles and canonical, and index only the ones that provide unique value. Everything else should stay noindex.

Checklist

Monitoring

Look at the Page indexing report monthly for new URL patterns. A sudden jump in "Excluded by 'noindex' tag" with search URLs is normal after you apply the rule. A jump in indexed URLs with odd query strings is a sign that something regressed, such as a template change dropping the tag. See how to verify deindexing.

Edge cases

Frequently asked questions

Should I use robots.txt or noindex for internal search pages?

Noindex first, so Google can see it and drop existing URLs. Add a robots.txt block afterwards if you want to reduce crawling.

Will noindex on search pages hurt my SEO?

Not if those pages have no unique value, which is true for most internal search results. Make sure your real content pages are linked from indexable pages.

Why are strange search URLs in my Google results?

Others may have linked to search URLs on your site with arbitrary query text. Apply noindex and, if urgent, a temporary removal.

Do WordPress SEO plugins handle this?

Many do, via a setting for search results. Verify the output rather than trusting the toggle. See deindexing WordPress pages.