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 Rule | Documented Value | Source |
|---|---|---|
| URL format required | Absolute URL including scheme and host | RFC 9309: Robots Exclusion ProtocolChecked November 25, 2026 |
| User-agent scoping | Global — applies to all crawlers regardless of position | RFC 9309: Robots Exclusion ProtocolChecked November 25, 2026 |
| Single sitemap ceiling | 50,000 URLs or 50 MB uncompressed | Google: 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
- RFC 9309: Robots Exclusion ProtocolNovember 25, 2026
- Google: Large Site Crawl Budget GuideNovember 25, 2026
Related Research Guides
- October 30, 2026How To Block AI Crawlers In Robots.txt: Every Bot, Sorted By Job80% of AI crawling feeds model training. See how to block AI crawlers in robots.txt, bot by bot, with block rates and a file to copy.
- November 20, 2026How Google Search Works: Crawling, Indexing And Ranking In Numbers61.94% of 16 million tracked pages were not indexed. See how Google Search works: crawling, indexing and ranking, with Google's own numbers.
- November 18, 202611 Technical SEO Checks Ranked By Indexing Impact: Status Codes, Crawl And CWVEleven technical SEO audit checks ordered by indexing impact—covering HTTP status codes, robots.txt leaks, 27.4-day indexing and Core Web Vitals.