Technical SEO

SEO for Internal Search Pages: Making Site Search Work for Rankings

The search box is one of the most useful features on your site — and the URLs it creates are one of the biggest crawl-budget liabilities you own. How to block search result pages in robots.txt, why noindex is the wrong tool, when a query deserves a real landing page, and how to turn your search log into keyword research.

9 min readBy the Zeshly editorial team
SEO for Internal Search Pages: Making Site Search Work for Rankings

Every site with more than a handful of pages eventually adds a search box, and every search box creates the same split personality. To visitors it is a shortcut: type a few words, jump straight to the page they want. To search engines it is a machine that prints new URLs on demand — one for every query anyone ever types, most of them thin, near-duplicate, or completely empty. The feature is one of the most useful things on your site. The pages it generates are one of the biggest crawl-budget liabilities you own. Getting internal search right means treating those two jobs separately: make the box excellent for people, and keep the URLs it creates away from Google.

Two jobs, one search box

The confusion starts because site search looks like one thing. It is actually two. The first is the feature itself: the box in the header, the results a visitor sees, the filters that help them narrow down. That feature is worth real investment, because visitors who use site search are usually the most motivated people on your site. They have already decided what they want; they just need to find it. A fast, accurate search box converts that intent; a bad one sends the same visitor to a competitor.

The second job is what happens behind the feature: every query produces a URL. On a shop that URL might be /search?q=running+shoes, on a WordPress site it is ?s=running+shoes, on a docs site it might be /search/running-shoes. Each one is a page Google can discover, crawl, and — if you let it — index. And there is no natural limit to how many of them exist. Every typo, every synonym, every half-finished phrase a visitor types becomes another address, most of them leading to a page with almost no content of its own.

Why search result pages are a crawl liability

In its guidance on crawl budget, Google lists the categories of URLs that waste crawling, and internal search results sit near the top, alongside faceted navigation, session identifiers, and other machine-generated addresses. Google calls these low-value-add URLs, and its wording is blunt: they drain crawl activity from pages that actually have value. Googlebot has a finite appetite for any one site, and every visit spent fetching a search page for a query nobody will ever repeat is a visit not spent on a new product page, a fresh article, or an updated guide.

The problem compounds because search URLs are effectively infinite. A catalogue with a thousand products can generate millions of distinct search URLs, and Googlebot keeps finding new ones as long as visitors keep typing. Popular-search widgets and related-search links hand it fresh addresses, and because search pages are thin — a list of links, a few snippets, no original content — they rarely earn their place in the index even when they do get crawled. The typical outcome is the worst of both worlds: crawl budget spent, nothing ranked.

Robots.txt beats noindex for search URLs

The fix is simple, and the choice of tool matters. To keep search result URLs out of Google, block them in robots.txt — do not use noindex. A noindex tag only works after Google crawls the page and reads it, which means Googlebot still has to request the page, fetch it, and then drop it. The crawl is wasted either way. A robots.txt disallow stops the request from happening at all, so the budget is never spent.

The rule looks like this, using the path your search uses. If your results live under /search/, the rule is a single line under User-agent: * — Disallow: /search/. If your search uses a query parameter, block that pattern instead: on WordPress, where search URLs look like ?s=your-query, the rule is Disallow: /*?s=. The exact pattern depends on your platform, so check a real search URL on your own site before writing the rule, and test it in Search Console's robots.txt tester afterwards.

There is one combination to avoid, and it trips up a surprising number of sites: never pair a robots.txt disallow with a noindex tag on the same URL. A blocked page cannot be read, so Google never sees the noindex, and the URL can linger in the index — usually without a description — if other pages link to it. Pick one control per URL. For search result pages, that control is robots.txt. And remember that robots.txt is not a mechanism for keeping a page out of Google in the absolute sense: a disallowed URL that other sites link to can still appear in results. What robots.txt does is stop the crawling, and for search URLs the crawling is the problem.

The one exception: queries worth a real page

Blocking search URLs does not mean the demand behind them is worthless. Some queries show up again and again in your logs, with clear intent and real search volume behind them. A query like that is not a search result page waiting to happen — it is a content brief. The right response is to build a proper page for it: a category page, a curated landing page, or a guide, with a real URL, real content, and a place in your navigation.

The difference matters. A raw search URL is thin by definition: whatever the search engine returned for that query, with no editorial judgement and no content written for it. A landing page is the opposite: a human chose what belongs on it, wrote copy for it, and linked to it from relevant places. Google ranks the second kind of page and ignores the first. So when your logs show a query with genuine, repeated demand, do not index the search URL — build the page the query deserves.

Empty results should be real 404s

Every search box produces empty result sets. Someone types a product you do not sell, a name you have never written about, or a string of characters that matches nothing. What your site does next is a small decision with outsized SEO consequences. The wrong answer is a soft 404: a page that returns a 200 status code while showing no results, or worse, a generic list of popular items as though the query had matched. Google treats soft 404s as pages that look like errors but claim to be real content, and it keeps crawling them — so a soft 404 wastes crawl budget twice, once for the crawl and once for the re-crawl.

The right answer is a real 404 status code for a search that matches nothing, delivered on a helpful page. Say plainly that nothing matched, show the query back to the visitor, suggest the closest alternatives, and offer the most popular searches or a link to browse by category. The status code is for crawlers; the helpful content is for people. Both can live on the same page, and the combination means an empty search costs you nothing in crawl budget while still giving the visitor somewhere to go.

Make the search box itself earn its keep

Containing the URLs is only half the job. The other half is making the feature good enough that visitors use it — and stay. Relevance comes first: results should match intent, not just spelling. A search for "refund" should surface the returns policy, not a blog post that mentions the word once. Synonyms matter too: a shopper who types "sofa" and one who types "couch" want the same thing, and exact-match-only search fails one of them. Typo tolerance is the third piece — a single transposed letter should not turn a good query into an empty result.

Speed is the next lever. Site search is a page people reach when they are already impatient, and a results page that takes seconds to load loses them before the results even appear. Keep the search index small and fast, load results without a full page reload where you can, and make sure the search works well on mobile, where the box is often the only navigation a visitor will use. Filters and sorting — by price, by date, by category — turn a long list of results into something a visitor can actually use, and they cost nothing in SEO terms because filtered URLs are search URLs too, and they are already blocked.

Your search log is keyword research you already own

The most valuable thing about internal search has nothing to do with rankings. It is the log. Every query a visitor types is a statement of intent, written in their own words, on your own site. No keyword tool can match that, because no keyword tool knows what your visitors want from you specifically. The log answers questions that are expensive to answer any other way: which products do visitors expect you to carry, which topics do they assume you cover, and which words do they use for things you call by a different name.

The highest-value entries are the no-result queries. A query that returns nothing is a visitor telling you exactly what they wanted and did not get. Group them, rank them by frequency, and the pattern usually appears fast: a product line you do not stock, a topic you have never written about, a synonym your content never uses. Some of those gaps are content briefs, some are product decisions, and all of them are cheaper to learn from a search log than from a lost sale.

Set this up properly and the log maintains itself. Analytics platforms can track site search automatically — GA4's enhanced measurement records search terms from common query parameters out of the box — but check that your parameter is one it recognises, and add it if it is not. Review the log monthly: weekly noise hides the trends, and monthly review catches a new gap before it costs much. Keep the log private, too. Search terms are user data, and they sometimes contain personal information a visitor typed by mistake, so aggregate them and do not keep raw queries longer than you need them.

A checklist for internal search SEO

Run through this list once, then again after any platform change, because search behaviour is one of the things a redesign or a migration quietly breaks. First, confirm every search result URL is blocked in robots.txt and that no search URL appears in your sitemap. Second, confirm no search page carries a noindex tag that contradicts the robots.txt rule. Third, check Search Console for search URLs already in the index, and let the block do its work — already-indexed URLs drop out as Google recrawls.

Fourth, test an empty search and confirm it returns a real 404 with a helpful page, not a soft 404. Fifth, search for a popular query on your own site and check the results are relevant, fast, and usable on a phone. Sixth, list the top ten no-result queries from the last month, with a decision next to each one: build a page, add a product, add a synonym, or leave it. Seventh, check your analytics is actually recording search terms — a log that stopped working after a redesign is a silent loss.

Internal search is one of those features where the SEO work and the user-experience work point in the same direction. Visitors want a box that understands what they mean and gets them there fast. Search engines want the URLs that box creates to stay out of the way. Do both, and the search box becomes what it should have been all along: a quiet, fast shortcut for the people who already know what they want.

This article is educational guidance on SEO and content strategy; search engine behaviour differs by site, niche and implementation, and nothing here guarantees rankings, traffic or indexation outcomes. Check the current guidance in Google Search Central before changing index, canonical or structured-data rules on a live site.

Explore the full Zeshly product suite, read more on the Zeshly blog, or head back to the homepage.

Ready to put this into practice?

Spin up Zeshly free for 14 days and ship the playbook above on your own site.