---
title: "robots.txt does not list the sitemap"
description: "Your sitemap exists, but robots.txt has no full Sitemap line for it, so crawlers that do not guess addresses may never find it."
url: https://ursy.com/issues/sitemap-not-in-robots/
updated: 2026-11-30T12:53:03+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/sitemap-not-in-robots/
---

# 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.

Your sitemap exists, but [robots.txt](https://ursy.com/wiki/robots-txt/) has no full Sitemap line for it, so crawlers that do not guess addresses may never find it.

## Why it matters {#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](https://ursy.com/wiki/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](https://ursy.com/wiki/redirect/) or one that does not answer with a sitemap is of no use to crawlers.

## How to fix it {#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.

1. Copy the full address of your sitemap or sitemap index.
2. Add "Sitemap: " and that address as a line in robots.txt.
3. Check that the address answers 200 with the sitemap.

### What the problem looks like {#what-the-problem-looks-like}

```
User-agent: *
Disallow: /cart/
Sitemap: /sitemap.xml
```

The Sitemap line uses a relative path, which crawlers cannot use.

### What it looks like fixed {#what-it-looks-like-fixed}

```
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 {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
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/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

Some [SEO](https://ursy.com/wiki/seo-search-engine-optimisation/) 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}

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 {#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 {#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 {#official-source}

[sitemaps.org: Sitemaps XML format](https://www.sitemaps.org/protocol.html#submit_robots)

## Questions {#questions}

### Where in robots.txt does the Sitemap line go? {#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? {#i-already-submitted-it-in-search-console-do-i-still-need-the}

It is still worth it, because other search engines and [AI crawlers](https://ursy.com/wiki/ai-crawler/) read robots.txt rather than your Search Console account.

---

**Cite this page:** robots.txt does not list the sitemap. URSY.com. Updated 30 November 2026. https://ursy.com/issues/sitemap-not-in-robots/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[robots.txt does not list the sitemap](https://ursy.com/issues/sitemap-not-in-robots/), URSY.com`. One section: add its id, for example https://ursy.com/issues/sitemap-not-in-robots/#section-id (every heading above has one).

Section links: https://ursy.com/citations/18/#p-5662 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/sitemap-not-in-robots/
- As JSON: https://ursy.com/issues/sitemap-not-in-robots/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
