Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Internal search pages indexed by Google: how to find and fix it

SEO-019Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Your site search box turns whatever a visitor types into a URL, such as /?s=red+shoes on WordPress or /search?q=red+shoes on Shopify. If those pages return 200 status, have no noindex tag and are linked or reachable by crawlers, search engines can crawl them and add them to the index.

Why it costs you leads or sales

Search result pages are thin and duplicate. They can compete with your real category or service pages, dilute which URL Google picks to rank, and use up crawl time that should go to pages that earn money. The impact is usually medium, not dramatic, but it grows with site size.

There is also a spam risk. Attackers sometimes link to your search URLs with junk or adult phrases so those pages appear under your domain. Visitors who land on an empty or odd results page rarely convert.

How search pages leak into Google
  1. Visitor or bot searches/?s=any+phrase creates a URL
  2. Results page returns 200No noindex, no block
  3. Google crawls and indexesThin duplicate pages in the index
  4. Crawl time dilutedLess attention on money pages

The break is the point where result pages are allowed into the index.

Indexed URLs by typeExample numbers
Indexed URLs by type (example)Product and category pages: 300 URLs; Search result URLs: 4,200 URLs01,6103,2203004,200Product and category …Search result URLsURLs

Example: a small shop with 300 real pages but thousands of indexed search URLs. Numbers are illustrative.

How to check if your site has it

Check for indexed search pages
  1. Find your search URL pattern

    Search for any word on your site and look at the address bar. Note the pattern, for example ?s= or /search?q=.

  2. Search Google for them

    Type site:yourdomain.com inurl:?s= (or inurl:search?q=) into Google. Any results mean search pages are indexed.

  3. Check Search Console

    In Google Search Console open Pages (Indexing) and look at the lists of indexed and excluded URLs. Filter by the search pattern.

  4. Inspect one results URL

    Use URL Inspection on a results page. Check whether it is indexable and whether a noindex tag is detected.

  5. View the page source

    Open a results page, view source and look for <meta name="robots" content="noindex">. No tag and no X-Robots-Tag header means it is indexable.

How to fix it

Add noindex to search results by platform
  1. Use your SEO plugin

    Yoast SEO, Rank Math and similar plugins have a setting to noindex internal search results (look under Search Appearance or Titles & Meta). Turn it on and save.

  2. Or add a small snippet

    Add the PHP snippet below to a child theme's functions.php or a code snippets plugin.

WordPress: noindex search resultsphp
add_action( 'wp_head', function () {
    if ( is_search() ) {
        echo '<meta name="robots" content="noindex, follow">' . "\n";
    }
}, 1 );
Shopify: noindex the search templateliquid
{% if template contains 'search' %}
  <meta name="robots" content="noindex, follow">
{% endif %}
robots.txt: block search URLs (add after they drop out of the index)text
User-agent: *
Disallow: /?s=
Disallow: /search
Disallow: /*?q=

How to confirm it's fixed

Confirmation checks
  • View source on a results page and see the noindex tag (or X-Robots-Tag header).
  • URL Inspection shows 'Excluded by noindex tag' for a results URL.
  • site:yourdomain.com inurl:?s= returns fewer results over the following weeks.
  • Search Console Pages report shows search URLs under 'Excluded by noindex tag', then declining.
  • After they drop, robots.txt tester or URL Inspection shows the search path is blocked.
  • Normal pages, including those with 'search' in the name, are still indexable.

How to prevent it happening again

Prevention
  • Keep the noindex rule in the theme or plugin, and re-test after theme changes or migrations.
  • Do not link to search result URLs from menus, footers or content.
  • Check the Pages report in Search Console monthly for new search URL patterns.
  • Re-test after you change SEO plugins, because settings can reset.
  • Consider rate limits or a CAPTCHA on the search form if bots hammer it, without blocking legitimate search crawlers.

How FunnelGuard handles this

FunnelGuard does not check for indexable internal search pages today. It is a possible future check. FunnelGuard is built to run your customer journeys, such as lead forms, checkouts and booking buttons, and to verify tracking hits and test-lead delivery.

Nearby, it will show you if a journey breaks after a theme or plugin change, which is often when SEO settings get reset too. To watch for search page indexing, use Search Console's Pages report, a monthly site: query, and a crawler such as Screaming Frog. You can also run the free read-only FunnelGuard website audit, but it does not replace these checks for this issue.

Questions people ask

Should internal search pages be indexed by Google?

Usually no. They are thin, duplicate and nearly unlimited in number. Your category, product and service pages are better landing pages for search visitors.

Should I use noindex or robots.txt to stop search pages being indexed?

Use noindex first, because Google must crawl a page to see the tag. Once the URLs have dropped out of the index, you can add a robots.txt Disallow to save crawl time. Blocking first can leave already-indexed URLs stuck in the index.

How do I find out if my site search pages are indexed?

Search Google for site:yourdomain.com inurl:?s= or the pattern your site uses, such as inurl:search?q=. You can also check the Pages report in Google Search Console and filter by that URL pattern.

How do I noindex WordPress search results?

Turn on the noindex setting for internal search results in your SEO plugin, such as Yoast SEO or Rank Math. Alternatively, add a wp_head snippet that outputs a robots noindex meta tag when is_search() is true.

Why are my search result URLs showing up in Google?

They are probably returning 200 with no noindex tag, and Google found them through links, sitemaps or spam links pointing at your search URLs. Add noindex and make sure you do not link to them.

Can indexed internal search pages hurt my SEO?

They can waste crawl time, create duplicate content that competes with real pages and be abused for spam. The harm is usually moderate, but it grows on large sites.

How long does it take for search pages to drop out of Google?

It depends on how often Google recrawls those URLs. It can take weeks or months for a large number of pages. Watch the Pages report in Search Console to track progress.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.