robots.txt does not list the sitemap
Your sitemap exists, but robots.txt has no full Sitemap line for it, so crawlers that do not guess addresses may never find it.
Why it matters #
A Sitemap line in robots.txt is the standard place where every crawler can find your sitemap, without you submitting it to each search engine and AI company one by one. The sitemaps protocol describes it, and the major search engines read it.
The line must give the full address, starting https://. A relative path, an address that redirects or one that does not answer with a sitemap is of no use to crawlers.
How to fix it #
Add a line anywhere in robots.txt, for example Sitemap: https://www.example.com/sitemap.xml. If you have a sitemap index, list the index. You can list more than one sitemap, one per line.
Check the line, and the sitemap behind it, with the Robots.txt Checker and the Sitemap Checker.
- Copy the full address of your sitemap or sitemap index.
- Add "Sitemap: " and that address as a line in robots.txt.
- Check that the address answers 200 with the sitemap.
What it looks like, and fixed #
User-agent: *
Disallow: /cart/
Sitemap: /sitemap.xml
The Sitemap line uses a relative path, which crawlers cannot use.
User-agent: *
Disallow: /cart/
Sitemap: https://www.example.com/sitemap_index.xml
The full address of the sitemap index, on its own line.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
My website [your website address] runs on [your platform, e.g. Webflow]. A check says my sitemap exists but robots.txt does not list it with a full Sitemap line. First read [your website address]/robots.txt (or ask me to paste it) and find my real sitemap or sitemap index address, checking that it answers 200 with XML and no redirect. Tell me in plain words what the robots.txt says now about sitemaps and what is wrong with it. Then give me the exact line to add, in the form Sitemap: followed by the full https address of the sitemap index, or one line per sitemap if there is no index. Rules: back up first, keep every other rule and comment as it is, add no Disallow lines, and remove only Sitemap lines that are relative or fail. Give me the complete file and where it goes on my platform. Finally, tell me to re-check with the URSY.com Sitemap Checker at ursy.com/sitemap-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
Some SEO plugins add the Sitemap line to the virtual robots.txt for you. If yours does not, add it in its robots.txt editor, or in the robots.txt file in the site root.
Shopify
Shopify adds the Sitemap line to robots.txt itself. If you edited robots.txt.liquid, check that you kept that part of the template.
Webflow
Add the Sitemap line with the full address in the robots.txt box in Site settings, SEO tab, then publish.
Check it is fixed #
Run the URSY.com Sitemap Checker (/sitemap-checker/) again. It should find the sitemap through the robots.txt line, and the address should answer 200.
Official source #
Questions #
Where in robots.txt does the Sitemap line go?
Anywhere. It does not belong to any User-agent group, so many sites put it at the end.
I already submitted it in Search Console. Do I still need the line?
It is still worth it, because other search engines and AI crawlers read robots.txt rather than your Search Console account.
More problems in Sitemaps
- A sitemap does not load, is empty or is too big High priority
- Change dates that are not real Medium priority
- No sitemap that bots can find Medium priority
- The sitemap lists the wrong addresses Medium priority
- The sitemap refuses bots Low priority