We respect your privacy.

We use strictly necessary cookies to keep you signed in and to protect against CSRF. With your permission we also use a small amount of first-party analytics to improve the product. We do not sell your data and we do not use third-party advertising trackers. See our cookie policy and privacy policy .

← All learn topics

Rule site.sitemap.not-in-robots

Reference your sitemap from robots.txt

site.sitemap.not-in-robots is a check in Crawlmind's site audit that grades medium-impact issues of this kind. This page explains why the rule matters and the exact fix.

Impact: mediumEffort: lowFixable: 1-click

Why it matters

Crawlers find sitemaps two ways: explicit `Sitemap:` line in robots.txt, or guessing common paths (/sitemap.xml, /sitemap_index.xml). Guessing is slow and not all bots do it. Naming the sitemap in robots.txt removes the ambiguity and surfaces it to every conformant crawler.

The fix

```
# Add one Sitemap: line per sitemap file.
Sitemap: https://example.com/sitemap.xml

# Index file pointing at multiple sub-sitemaps also works.
Sitemap: https://example.com/sitemap_index.xml
```

The `Sitemap:` directive is independent of any `User-agent:` group: it applies to every crawler.

References