Control indexing with noindex, and avoid excluding important pages
Understand robots meta tags and the X-Robots-Tag header, find pages you excluded by accident, and control how much search and AI features may quote.
The problem
Some pages carry noindex (or none), or restrict snippets with nosnippet or max-snippet:0, possibly by mistake.
How to spot it
- A page you expect in search never appears.
- The audit lists pages with
noindexin a meta tag or HTTP header.
Why it matters
noindex removes a page from search results entirely. That is right for thank-you pages, internal search results and private areas, but a costly mistake on product or service pages. Snippet restrictions stop search and AI features from quoting the page.
What happens if you leave it
An accidentally excluded page gets no search traffic at all, however good it is.
How to fix it
- Review every URL the audit lists under "Pages excluded from search".
- For pages that should appear in search, remove the directive from:
- the HTML:
<meta name="robots" content="noindex"> - the HTTP header:
X-Robots-Tag: noindex(set by the server, CDN or plugin)
- the HTML:
- Keep
noindexon pages that should stay out (login, cart, internal search, duplicates you cannot canonicalise). - Remove
noindexpages from your XML sitemap. - Only use
nosnippetormax-snippetwhere you deliberately want to limit quoting.
Platform-specific notes
- WordPress: check Settings → Reading → "Discourage search engines" (adds noindex site-wide), and per-page settings in your SEO plugin.
- Staging copies: make sure the live site did not inherit a staging site's noindex header.
Common mistakes
- Blocking a page in robots.txt and adding noindex: crawlers then cannot see the noindex at all.
- Forgetting HTTP headers set at the server or CDN level.
How to check the fix worked
Check the page source for a robots meta tag and the response headers (browser network tab or curl -I) for X-Robots-Tag. Use URL Inspection in Search Console to request indexing once fixed.
References and further reading
Related tutorials
Create and check your robots.txt file
robots.txt tells crawlers which parts of your site they may fetch and where your sitemap is. Here is how to pu...
Build an XML sitemap that only lists the right pages
A clean sitemap lists every page you want found: live, final and indexable. This guide covers creating one, ke...
Fix broken links and pages that return errors
Find and repair links to missing pages, restore or redirect dead URLs, and deal with server errors and unreach...