Crawling, robots & indexing directives

robots.txt Sitemap Directive

Declares the absolute URL of one or more XML sitemaps inside /robots.txt so every search engine and AI discovery bot can find your URL index automatically without manual submission.

Verified

Syntax / Example

User-agent: *
Allow: /

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

Verify On A Live URL

curl -s https://example.com/robots.txt | grep -i "^sitemap:"

Documented Facts For robots.txt Sitemap Directive

Metric or RuleDocumented ValueSource
URL format requiredAbsolute URL including scheme and hostRFC 9309: Robots Exclusion ProtocolChecked November 25, 2026
User-agent scopingGlobal — applies to all crawlers regardless of positionRFC 9309: Robots Exclusion ProtocolChecked November 25, 2026
Single sitemap ceiling50,000 URLs or 50 MB uncompressedGoogle: Large Site Crawl Budget GuideChecked November 25, 2026

Official Specification & Google Behavior

Supported by Google, Bing and compliant crawlers alongside RFC 9309. Sitemap lines are global (not scoped to a User-agent group), must use absolute URLs, and may appear multiple times.

SEO & Indexing Impact

Accelerates URL discovery across search engines beyond Google—including Bing, Yandex and independent AI search crawlers—though Google treats sitemaps as hints, not indexing guarantees.

Backlink Monitoring Verdict
Does not affect link attributes directly, but clean sitemap discovery helps newly published guest posts get crawled and indexed faster.

Common Pitfalls

  • Writing a relative path like 'Sitemap: /sitemap.xml' instead of a full https:// URL.
  • Listing non-canonical, redirected or noindex URLs inside the referenced sitemap.

Frequently Asked Questions

Does a Sitemap line in robots.txt belong inside a User-agent group?
No, Sitemap directives are independent of User-agent groups and apply globally to every crawler that reads robots.txt.
Can you list more than one Sitemap in robots.txt?
Yes, add one absolute Sitemap: line per sitemap or point to a single sitemap index file referencing child sitemaps.
Does declaring a sitemap guarantee Google will index every URL?
No, Google calls a sitemap submission a discovery hint; indexing still depends on crawlability, canonicalization and content quality.

Primary Sources

Verified

Related Research Guides