Browsers & softwarePractical guides

Robots.txt allows a URL but Google has not indexed it: three checks

A URL can pass a robots.txt check and still be absent from Google Search. Record the rules, indexing directives and Google’s reported indexed status separately for the final URL.

A laptop on a desk, illustrating website review
Illustrative photo: Lasse Jensen · Unsplash License

Key Takeaways

Check the active host and path against its public robots.txt, inspect the final response for noindex, then use URL Inspection in a Search Console property you can access to record indexed status and Google’s selected canonical.

In this article

Run a three-path control first

Open the robots.txt rules checker, switch to pasted source, use example.com as the teaching host, and supply the rules and three paths below. Keep the wildcard user-agent selection. The checker evaluates paths without visiting those pages. For a production audit, obtain the current robots.txt from the final host and record the crawler and URL you tested. See Google’s robots.txt introduction.

Three example paths

Input

User-agent: * Disallow: /search/ Allow: /search/help

Reference result

/guide/setup → allowed /search/?q=demo → disallowed /search/help → allowed

The longer explicit allow path can produce a different result for a URL under the same directory.

Read the final response and the index report

  1. Record any redirect and the final scheme, host and path. Confirm which host you are checking when the site uses both www and a bare domain.
  2. Inspect the final HTML for a robots meta directive and the response for X-Robots-Tag. Google’s noindex guidance explains that a blocked crawler may be unable to see the directive.
  3. Record the last crawl, indexed status and Google-selected canonical in Search Console. For a recent release, include when you inspected the page and which version was live.

Leave an audit note a colleague can reproduce

A possible note is: “/guide/setup: crawl rule allows it, final HTTP response 200, page and header directives checked, indexed status pending.” A page opening in your browser is evidence for that request. Include the host, user agent and evidence link, and use the public web evidence checklist to keep the conclusion within the tested scope.

Common questions

Does a sitemap entry prove the page is indexed?

A sitemap can help discovery. Check the specific URL’s indexed result in Search Console.

Further reading & sources

Put the guide into practice

Open the relevant tool, preview the result and check your exported file.