Crawling and robots.txt · robots.txt file
Sitemap not declared in robots.txt
A Sitemap line lets every search engine find the sitemap, not only those it is submitted to.
How this page is built
The test host has a valid XML sitemap at /sitemap.xml, but its robots.txt file contains only a general group that allows everything. There is no Sitemap line pointing to the sitemap.
The test host is robots-groups.techseotests.com, and its file is at https://robots-groups.techseotests.com/robots.txt. A host has only one robots.txt file, so this test has a subdomain of its own. Every other address on that subdomain redirects back to this site.
Why it matters
Submitting a sitemap in Search Console tells only Google about it. A Sitemap line in robots.txt is read by every crawler that fetches the file, including other search engines and crawl tools, so it is the simplest way to make sure the sitemap is found.
Without the line, crawlers have to guess the sitemap’s address or rely on finding every page through links.
How to check it
Open the robots.txt file and look for a line that starts with Sitemap: followed by a full URL. Then check that the sitemap address it gives returns a 200 status code. Crawl tools only read a robots.txt file for the hosts they crawl. Set the crawl to follow links to subdomains, or start a crawl at the subdomain, and look at the robots.txt report.
How to fix it
Add a line such as Sitemap: https://example.com/sitemap.xml to robots.txt for every sitemap or sitemap index. Use the full URL, including the scheme and host.