webzod
account

List the sitemap in robots.txt

hygiene.sitemap.not_declared · effort: minutes

Why it matters

A sitemap exists at /sitemap.xml but robots.txt does not mention it, so crawlers that do not already know about it will not find it. Adding the line takes a minute.

The fix

  1. Add a Sitemap line with the full https address to robots.txt. It can sit anywhere in the file and does not belong to a User-agent group.
  2. Reload https://example.com/robots.txt and check the line is there.
robots.txt
Sitemap: https://example.com/sitemap.xml

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.