On this page
What this issue is
A robots.txt file sits at the root of your site (for example https://www.example.com/robots.txt) and tells crawlers which paths they may fetch. It can also include a Sitemap: line, which points to your XML sitemap: a list of the URLs you want crawled and indexed.
This issue means your robots.txt has rules but no Sitemap: line. The directive is optional. Google, Bing and other crawlers support it, and it is the one place any crawler can look without being told anything else.
User-agent: *
Disallow: /cart/
Disallow: /checkout/
Sitemap: https://www.example.com/sitemap.xmlWhy it costs you leads or sales
The direct impact is small. Google can still find your sitemap if you submit it in Search Console, and it finds pages by following links. But new landing pages, product pages and offers can be discovered more slowly when the sitemap is hard to find, and some crawlers never see a sitemap you only submitted to Google.
Pages that are not crawled are not shown in search results, so they cannot bring leads or sales. The line costs nothing to add and works for every crawler that reads robots.txt, not just one search engine.
- Crawler fetches robots.txtRules are read
- No Sitemap: lineNo pointer to your sitemap
- New pages found slowlyOnly via links or manual submission
- Delayed search visibilityFewer visits to new pages
Without the line, the crawler depends on links and manual submission to find new pages.
How to check if your site has it
Open the file
Visit https://yourdomain.com/robots.txt in a browser. Use the exact version of your domain that visitors land on (with or without www).
Look for a Sitemap line
Search the page for
Sitemap:. It is usually at the bottom, but it can be anywhere in the file.Check the URL is absolute
It must start with https:// and include the domain. A path like
/sitemap.xmlis not valid.Open the sitemap URL
Paste the URL into a browser. It should load XML, not a 404 page or a redirect to the homepage.
Check from the command line (optional)
Run
curl -s https://yourdomain.com/robots.txt | grep -i sitemap. No output means there is no Sitemap line.
How to fix it
First find your sitemap URL. Common locations are /sitemap.xml, /sitemap_index.xml (Yoast and some others) and /wp-sitemap.xml (WordPress core). Then add one Sitemap: line per sitemap. How you edit robots.txt depends on your platform.
Check what already generates robots.txt
WordPress creates a virtual robots.txt unless a physical file exists. Yoast SEO and Rank Math usually add the Sitemap line automatically when their sitemap is on. If yours is missing, confirm the sitemap feature is enabled in the plugin settings.
Edit the file with your SEO plugin
In Yoast SEO go to Tools > File editor. In Rank Math go to General Settings > Edit robots.txt. Add the Sitemap line at the bottom and save.
If a physical robots.txt exists
Edit it over SFTP or your host's file manager in the site root, since the plugin's virtual file is not used in that case.
Know the default
Shopify's default robots.txt already includes a Sitemap line pointing to /sitemap.xml. If it is missing, a custom template has probably replaced it.
Open the template
Go to Online Store > Themes > Edit code and open
robots.txt.liquidunder Templates.Restore the line
Add
Sitemap: {{ shop.url }}/sitemap.xmlafter the rules loop, or restore the default template contents, then save.
Open the editor
In the Wix dashboard go to Marketing & SEO > SEO Tools > Robots.txt Editor (available on current Wix plans).
Check the default
Wix adds a Sitemap line by default. If you removed it, add
Sitemap: https://www.yourdomain.com/sitemap.xmland save.
Know the limits
Squarespace generates robots.txt for you and includes your sitemap at /sitemap.xml. You cannot edit the file directly.
If the line is missing
Confirm your primary domain is set correctly under Settings > Domains, reload the file, and contact Squarespace support if the line is still absent.
Open SEO settings
Go to Site settings > SEO and find the Indexing section.
Enable the sitemap
Turn on Auto-generate sitemap. Webflow then serves /sitemap.xml.
Add the line
In the robots.txt box, add
Sitemap: https://www.yourdomain.com/sitemap.xml, save, then publish the site.
Edit the file
Open robots.txt in your web root and add
Sitemap: https://www.yourdomain.com/sitemap.xmlon its own line. Use a blank line before it for readability.Multiple sitemaps
Add one line for each sitemap or a single sitemap index. Do not put several URLs on one line.
Deploy
Publish the file to production and clear any CDN cache so the new version is served.
Before
- Rules only
- No pointer to the sitemap
- Crawlers rely on links or manual submission
After
- Rules plus `Sitemap: https://www.example.com/sitemap.xml`
- Any crawler can find the sitemap
- New pages are easier to discover
How to confirm it's fixed
- Reload /robots.txt in a private window and see the Sitemap line.
- The file still loads as plain text with a 200 status (not HTML or a 404).
- The sitemap URL in the line opens and shows valid XML.
- The sitemap URL uses https and your preferred host.
- In Google Search Console, open Settings > robots.txt report and confirm the latest fetch succeeded.
- In Search Console, open Sitemaps and confirm the sitemap shows a Success status.
How to prevent it happening again
The line usually disappears when someone replaces robots.txt during a migration, a theme change or a plugin switch. Keep a copy of your approved robots.txt and compare it after every launch.
- Add the Sitemap line to your launch checklist for new sites and migrations.
- Never copy a staging robots.txt to production without reviewing it.
- Keep the file in version control if you use custom code.
- Re-check robots.txt after changing SEO plugins or themes.
- Submit the sitemap in Search Console and Bing Webmaster Tools as well.
How FunnelGuard handles this
FunnelGuard does not check this yet. A missing Sitemap line in robots.txt is a possible future check, but today it is not monitored.
What FunnelGuard does do is run your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule, and check each step, the tracking hits sent to ad and analytics platforms, and whether test leads arrive. That covers conversion paths, not your robots.txt.
To watch for this yourself, add a robots.txt review to your release checklist and open the file after each deployment. You can also use the Search Console robots.txt report and Sitemaps report, or a scheduled curl command that fails when the line is missing.
curl -s https://www.example.com/robots.txt | grep -qi '^sitemap:' && echo "OK: Sitemap line found" || echo "MISSING: no Sitemap line"A free read-only FunnelGuard website audit is also available if you want a general review of your site.
Questions people ask
Does robots.txt need a Sitemap line?
No. The Sitemap line is optional, and your site works without it. It is still recommended because it lets any crawler that reads robots.txt find your sitemap without extra setup.
How do I add a sitemap to robots.txt?
Add a new line such as Sitemap: https://www.example.com/sitemap.xml to your robots.txt file. Use the full absolute URL, put one sitemap per line, and save the file in your site root. On platforms like WordPress, Shopify or Wix, use the built-in editor or plugin.
Why is my sitemap not in my robots.txt?
Usually the file was replaced or edited by hand, a custom template overrode the default, or the SEO plugin's sitemap feature is turned off. Staging files copied to production are another common cause.
Can I list more than one sitemap in robots.txt?
Yes. Add one Sitemap: line for each sitemap file, or list a single sitemap index file that points to the others. Each URL must be absolute and on its own line.
Does the Sitemap line have to be at the bottom of robots.txt?
No. It is independent of the User-agent groups and can go anywhere in the file. Putting it at the bottom, separated by a blank line, is the common convention and easier to read.
Is it enough to submit my sitemap in Google Search Console?
It works for Google, but not for other crawlers that never see your Search Console account. The robots.txt line is read by Google, Bing and others, so use both.
Can I use a relative URL in the Sitemap line?
No. The Sitemap value must be a full URL starting with https:// or http://, including the domain. A relative path like /sitemap.xml is not valid.
Does FunnelGuard check for a missing Sitemap line in robots.txt?
Not yet. It is a possible future check. For now, review robots.txt manually after releases, use Search Console reports, or schedule a simple curl check.
Related issues
- SEO-005robots.txt returns 404 or HTML instead of plain textFix guide
- SEO-006robots.txt syntax errors or unsupported directives (noindex in robots.txt)Fix guide
- SEO-011Different robots.txt on www and non-www or http and https hostsFix guide
- SEO-001robots.txt Disallow: / left over from staging blocks the whole siteFix guide
- SEO-009robots.txt over 500 KB, rules beyond the limit ignoredFix guide
- SEO-002robots.txt blocks a money page or landing page directoryFix guide