SEO issue explained

robots.txt has no Sitemap line

Your robots.txt does not list your XML sitemap. Search engines that you have not told about the sitemap may not find it.

A friendly robot examining a web page with a magnifying glass, surrounded by charts and check marks

What this issue means

ROC SEO adds a notice under check T5 when robots.txt has no Sitemap: line. The line looks like this: Sitemap: https://example.com/sitemap.xml.

Why it matters

Submitting your sitemap in Google Search Console covers Google, but Bing, other search engines and many AI crawlers read robots.txt first. A Sitemap line is a simple, standard way to point all of them to your list of pages.

How to fix it

  1. Find your sitemap address. Common ones are /sitemap.xml and, in WordPress SEO plugins, /sitemap_index.xml.
  2. Add a line to robots.txt with the full address, including https://. It can go anywhere in the file.
  3. List each sitemap or sitemap index on its own line if you have several.
  4. Check the file with the robots.txt tester and the sitemap with the sitemap checker.

Find it on your own site

The free ROC SEO extension checks the page you are on for this and more than 60 other issues, each with a fix, and the site crawler checks up to 1,000 pages for free.

Related issues

Frequently asked questions

Do I still need to submit the sitemap in Search Console?

It is still worth it: Search Console shows whether Google read it and reports errors.

Can the sitemap be on another domain?

Yes, if you control both, but a sitemap on the same domain is simplest.

Does the Sitemap line belong to a User-agent group?

No. It is independent of the groups and applies to all crawlers.

Get in touch

Questions, ideas or a partnership?

Write to us about anything: a guest post or publishing on our blog, a partnership, an update you would like to see, a problem with the extension, billing or a refund. A person reads every message and replies by email.

Prefer email? Write to support@getrocseo.com.