In short
Semrush flags "Sitemap.xml not indicated in robots.txt" when your robots.txt has no Sitemap: line. Crawlers that don't use Search Console (Bing, AI crawlers, SEO tools) check robots.txt to find the sitemap. Add one line with the full URL.
Search Console is one way to tell Google about your sitemap. Robots.txt is how you tell everyone else.
The fix
Sitemap: https://example.com/sitemap_index.xml
Use the full absolute URL.
It can go anywhere in the file; the end is conventional.
List several lines if you have several sitemaps or an index.
Where to add it
WordPress: Yoast and Rank Math add it to the virtual robots.txt automatically; if you have a physical robots.txt file, it overrides theirs, so add the line yourself. Shopify: included by default. Webflow: add it in Site settings > SEO > robots.txt. Wix: included by default. Custom builds: add it to the static file.
This guide isn't affiliated with or endorsed by Semrush.
Related issues
Sources and references
Semrush Knowledge Base, What Issues Can Site Audit Identify?
Google Search Central, Build and submit a sitemap

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



