Noindex and indexing errors: why a page stays out of search
A page stays out of search results when something tells search engines not to index it. The signal can be a robots meta tag, an X-Robots-Tag header, a robots.txt block combined with links to the page, or an unavailable-after date. Find which signal applies, remove it from pages that should rank, and make sure that canonical, sitemap and robots rules do not contradict each other.
How the problem happens
Noindex is added during development and forgotten at launch, a plugin applies it to a whole content type, or a server header set for staging is copied to the live configuration.
Why indexing directives decide what search and AI can show
Indexing directives are instructions to a search engine about a single page: index it or not, show a snippet or not, show a large image or not, drop it after a date. They live in a robots meta tag or in an X-Robots-Tag HTTP header. A noindex is exactly right for a login page, a thank-you page or an internal search result. The same directive on a page you want to rank removes it from results, usually after a template or staging setting is copied to the live site.
Three further problems are quieter. When the meta tag and the header disagree, the more restrictive one wins. When robots.txt blocks a page, the crawler never sees a noindex on it, so the page can still appear as a bare link. And restrictions such as nosnippet, a small max-snippet or max-image-preview:none limit what Google, and the AI answers built on its index, may quote or display. Internal search pages and thin archives that can be indexed have the opposite effect: they flood the index with low-value copies that dilute the pages that matter.
How to find indexing problems by hand
Check both places a directive can live. In the page source search for name="robots" and for the names of specific crawlers, and in the response headers look for X-Robots-Tag with curl -I. Remember that a header applies to files that have no HTML, such as PDFs. Then compare the result with your intention page by page: is every page you want in search free of noindex, and is every page you want out of search marked?
Use the URL inspection tool in Google Search Console to see the verdict Google reached: indexed, excluded by noindex, blocked by robots.txt, duplicate with another canonical, or discovered but not indexed. The page indexing report groups these reasons across the site. A sudden fall in indexed pages after a release can point to a copied directive; check the page indexing report in Search Console and the robots meta tag and X-Robots-Tag header of the affected pages first, and keep other causes in mind.
Then test the quiet cases. Open the robots.txt rules and confirm that no page carrying noindex is also blocked there. Search your site with a site: query for internal search results, tag, author and date archives. Check that article pages allow large image previews if you want to appear in Discover, and look for unavailable_after values that expire important pages.
How to fix indexing directives in code, server and CMS
Make the default explicit and rare. Normal pages need no robots tag at all, because indexing is the default; add max-snippet:-1 and max-image-preview:large where you want the fullest display. Put noindex only on pages that should never rank, and keep them crawlable so the directive can be read. When you want a page out of results, never combine robots.txt blocking with noindex; choose noindex and let the crawler in.
Keep one source of truth per page. Set the directive in the template or in the SEO plugin, not in both the markup and a server rule, and make staging protection independent, with a login rather than a noindex that can travel to production. Use the X-Robots-Tag header for files such as PDFs and images. For internal search results, tag pages and thin archives, either noindex them or stop generating them, and keep them out of the sitemap.
After a fix, request indexing for the key pages in Search Console, resubmit the sitemap and watch the page indexing report. A page returns only after the crawler visits it again, so allow days or weeks for large sites.
<!-- keep a thin page out of results (page must stay crawlable) -->
<meta name="robots" content="noindex, follow">
<!-- normal article: allow snippets and large previews -->
<meta name="robots" content="max-snippet:-1, max-image-preview:large">
# the same directive for a PDF (Nginx)
location ~* \.pdf$ {
add_header X-Robots-Tag "noindex";
}How RankDossier detects indexing problems
RankDossier reads the robots meta tags and the X-Robots-Tag header of every crawled page. The checks in this family list pages with noindex so you can confirm each is intentional, flag a meta tag and a header that disagree, and flag pages blocked by robots.txt that are still linked from the site. They also report restricted snippets, a missing large image preview for Discover, unavailable_after expiry dates, other restrictions such as noarchive and data-nosnippet, internal search pages and thin archives that can be indexed, and URLs where the sitemap, canonical, robots.txt, status code and noindex contradict each other. When Search Console is connected, a further check reports pages Google itself says are not indexed.
Each finding shows the directive that was read and where it came from. Test one page with the Indexability checker. The guide to pages that are not indexed walks through the causes in order, the guide on noindex, canonical and multilingual sites explains how signals interact, and the crawler control guide compares robots.txt, noindex and headers.
Wrong and right
Wrong
<meta name="robots" content="noindex, nofollow">
# nginx
add_header X-Robots-Tag "noindex" always;
Right
<meta name="robots" content="index, follow">
How to fix it
WordPress
Clear the option in Settings, Reading that discourages search engines, then check the indexing setting of the page and of its content type in your SEO plugin.
Next.js
Check the robots field of the metadata in the page and in every parent layout, and set index and follow to true for pages that should appear in search.
export const metadata = {
robots: { index: true, follow: true },
};
Nginx
Search the server configuration for X-Robots-Tag and remove it from the live block, then request the page headers to confirm that the header is gone.
# remove this staging leftover from the live server block
# add_header X-Robots-Tag "noindex" always;
curl -s -I https://example.com/ | grep -i x-robots-tag
Check codes in this family
These checks belong to this family. Each code appears in the audit report with its own explanation and fix.
NOINDEX_PAGEPages with noindexROBOTS_META_CONFLICTConflicting indexing directivesBLOCKED_BUT_LINKEDBlocked by robots.txt but linkedSNIPPET_RESTRICTEDRestricted search snippetDISCOVER_IMAGE_PREVIEWmax-image-preview:large is missingUNAVAILABLE_AFTERPages with an expiry dateINDEXABLE_SEARCH_PAGESInternal search pages can be indexedINDEXABLE_THIN_ARCHIVESThin archives that can be indexedGSC_NOT_INDEXEDPages not indexed by Google (Search Console)INDEX_DIRECTIVES_INFOAdditional search engine restrictionsINDEX_SIGNAL_CONFLICTSConflicting indexing signals
Related check families
Read the full guide Pages not indexed: why Google skips them and how to fix it for the wider picture. Test one page for free with the Indexability checker.
Check your own site
Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.
Start the free pre-check