Learn/Search & sharing

Search indexing: robots.txt, noindex, and sitemaps

Let search engines crawl and list your homepage, keep robots.txt loading cleanly, and point them to a sitemap.

Want this checked on your own domain?

Join the waitlist

Updated

Message for whoever manages your website

Hi, could you check that search engines may crawl and list our website?

  1. robots.txt doesn’t disallow our homepage or other pages we want in search.
  2. The homepage has no “noindex” in a robots meta tag or an X-Robots-Tag header.
  3. robots.txt loads without a server error.
  4. We publish a sitemap, and robots.txt lists it.

Thank you.

Want this checked on your own domain? Join the waitlist.

Check yours

Run the full report (join the waitlist for access). If the site is verified in Google Search Console, its URL Inspection tool shows the page exactly as Googlebot received it, and its Page Indexing report lists pages where Google found a noindex rule.

Fix it

Crawling and listing are separate. Google’s documentation is explicit: robots.txt manages crawler traffic and “is not a mechanism for keeping a web page out of Google”; noindex is. The two also interact: a crawler can only obey a noindex it is allowed to fetch. If robots.txt blocks a page, the noindex on it is never seen, and the page can still appear in results when other pages link to it.

Search engines are told not to list the homepage

What it means. The homepage carries noindex or none (which means noindex plus nofollow) in a robots meta tag or an X-Robots-Tag response header. When Googlebot sees it, Google drops the page from its results entirely, even if other sites link to it. Bing honors the same rule.

Where it comes from. A platform or SEO plugin setting that hides the site from search engines, or a server or CDN rule that adds the header. In WordPress, checking Settings → Reading → Search Engine Visibility → Discourage search engines from indexing this site adds a noindex,nofollow robots meta tag to the site’s pages (since WordPress 5.3).

Fix.

  1. Find the source. In the page source, look for <meta name="robots" or <meta name="googlebot" with noindex or none. For the header, run curl -sI https://example.com/ | grep -i x-robots-tag with your address.
  2. In WordPress, uncheck Discourage search engines from indexing this site and save.
  3. On other platforms, look for a search engine visibility or SEO setting for the site and for the homepage.
  4. If the header comes from server or CDN configuration, remove noindex from that rule.
  5. Don’t block the page in robots.txt while you wait. Google has to crawl it to notice the noindex is gone.

Confirm. Run the report again. In Search Console, inspect the homepage and request indexing; otherwise Google notices the change on its next crawl, which Google says can take months for some pages.

robots.txt blocks search engines

What it means. The robots.txt rules that apply to Googlebot or Bingbot disallow your homepage. They won’t crawl it, so its content can’t be indexed. Google may still list the bare address if other pages link to it, but without a description.

Fix.

  1. Open https://example.com/robots.txt (with your domain) in a browser.
  2. Find the group that applies. A crawler follows only the most specific group that names it, such as User-agent: Googlebot, and falls back to User-agent: * only if none does (RFC 9309 §2.2.1).
  3. In that group, remove Disallow: /, or the rule that matches your homepage. To keep crawlers out of one area only, disallow just that path.

A file that blocks everything:

User-agent: *
Disallow: /

A file that allows everything except one folder, and lists the sitemap:

User-agent: *
Disallow: /admin/

Sitemap: https://example.com/sitemap.xml

Older WordPress versions (up to 5.2) served Disallow: / when Discourage search engines was checked; the fix is the same setting described above.

Confirm. Run the report again. Google caches robots.txt for up to 24 hours, so it may take a day to act on the change.

robots.txt can’t be fetched

What it means. Requests for /robots.txt get a 5xx server error. The standard tells crawlers to assume they may crawl nothing while robots.txt is unreachable (RFC 9309 §2.3.1.4). Google’s documented behavior:

  1. For the first 12 hours, it stops crawling the site and keeps retrying robots.txt.
  2. For the next 30 days, it uses the last version it fetched successfully; if it has none, it assumes there are no restrictions.
  3. After 30 days, it behaves as if there were no robots.txt if the rest of the site is generally available, and stops crawling the site if it isn’t.

Google treats 429 (too many requests), timeouts, and connection errors the same way as 5xx.

Fix. Make /robots.txt return either a valid file with status 200, or a plain 404 if you don’t want one. Google treats every 4xx except 429 as “no robots.txt, no restrictions”. Check your server, platform, or CDN logs for the failing requests to find which layer returns the error.

Confirm. curl -sI https://example.com/robots.txt shows status 200 (or 404), and the report no longer shows this item.

No sitemap found

What it means. The report found neither a Sitemap: line in robots.txt nor an XML file at /sitemap.xml. It can’t see a sitemap you submitted only in Search Console.

Do you need one? Google says a sitemap helps most on large sites, on new sites with few links from other sites, and on sites with a lot of video, images, or news; a small site (about 500 pages or fewer) whose pages are all linked from the homepage may not need one. Google also says “in most cases, your site will benefit from having a sitemap”, and that it is a hint, not a guarantee of crawling.

Fix.

  1. Check whether your platform already makes one. Google notes that a CMS such as WordPress, Wix, or Blogger has likely made one available. WordPress 5.5 and later publishes a sitemap index at /wp-sitemap.xml and lists it in the robots.txt that WordPress generates; it turns sitemaps off while Discourage search engines is checked.
  2. Add a line with the sitemap’s full address to robots.txt, anywhere in the file. You can list several:
Sitemap: https://example.com/sitemap.xml
  1. Optionally, submit it in Search Console’s Sitemaps report, which shows when Google read it and any errors.

If you build one yourself: each file holds at most 50,000 URLs or 50 MB uncompressed, must be UTF-8, and must use full, absolute URLs. Google ignores <priority> and <changefreq>, and uses <lastmod> only when it is consistently accurate.

Confirm. Run the report again; the item clears once robots.txt lists the sitemap or /sitemap.xml answers with an XML file.

Technical reference

robots.txt rules (RFC 9309)

RuleDetailSection
Location/robots.txt at the top level; applies only to that scheme, host, and port§2.3; Google
GroupsOne or more user-agent lines followed by allow/disallow rules; matching is case-insensitive; groups that match the same crawler are merged; * applies only when no group names the crawler§2.2.1
MatchingThe longest matching path wins; if an allow and a disallow rule match equally, allow wins; no match means allowed§2.2.2
Special characters* matches any sequence, $ anchors the end, # starts a comment§2.2.3
Other recordsSitemap lines are allowed and must not end a group§2.2.4
4xxUnavailable: the crawler may access anything§2.3.1.3
5xx, network errorsUnreachable: assume complete disallow; after a long period (for example 30 days) may treat as unavailable or use a cached copy§2.3.1.4
CachingShould not use a cached copy for more than 24 hours unless unreachable§2.4
SizeParsers must handle at least 500 KiB§2.5

Google follows at least five redirect hops for robots.txt before treating it as a 404, ignores rules without a path and unsupported fields such as crawl-delay, applies the least restrictive rule when matching rules conflict, and enforces a 500 KiB limit.

Robots meta tag and X-Robots-Tag

FormExampleNotes
Meta tag, all crawlers<meta name="robots" content="noindex">Must be in the <head>
Meta tag, one crawler<meta name="googlebot" content="noindex">, <meta name="bingbot" content="noindex">Google supports the googlebot and googlebot-news tokens; Bing supports bingbot
HeaderX-Robots-Tag: noindexAlso works for PDFs and images
Header, one crawlerX-Robots-Tag: googlebot: noindexRules without a crawler name apply to all

none equals noindex, nofollow for Google. When rules conflict, Google applies the more restrictive one. Rules are case-insensitive.

Sitemaps

Google accepts XML, RSS or Atom feeds, and plain-text sitemaps. A sitemap affects only URLs at or below its own directory unless you submit it in Search Console, so the root is the usual place. The robots.txt Sitemap line takes an absolute URL, which may be on another host, and isn’t tied to any user agent.

What the report checks

The checks run on the homepage visitors end up on after redirects. They don’t run when the site forwards to another domain or the homepage isn’t an HTML page.

CheckDetailResult if it fails
noindexnoindex or none in a robots, googlebot, or bingbot meta tag, or in an X-Robots-Tag header that names no crawler or names Googlebot or BingbotSearch engines are told not to list the homepage
robots.txt status/robots.txt on the same scheme and host returns 500 or higher or 429, or doesn’t answerrobots.txt can’t be fetched
robots.txt rulesFor a 200 response that isn’t HTML, the groups whose User-agent equals Googlebot or Bingbot (ignoring case) are selected, and the homepage path is evaluated with RFC 9309 matching. Lines such as Sitemap: don’t end a group.robots.txt blocks search engines
SitemapA Sitemap: line in robots.txt, or /sitemap.xml returning 200 with an XML content typeNo sitemap found

The report doesn’t validate the sitemap’s contents.

Sources

Want this checked on your own domain?

Join the waitlist
Domain Readiness

Free checks for email, website, DNS, and registration, with plain-English fixes.

Domain Readiness™ (domainreadiness.com) is a service of Riviera Learning, LLC.