# Is there a sitemap.xml link or reference?
*Discoverability*
Create a sitemap.xml with only the canonical URLs of public pages, and reference it from robots.txt.

## Why it matters
As pages grow, search engines may not find them all. New pages in particular are discovered late.
A sitemap.xml referenced from robots.txt helps new pages get found sooner.

## How to fix it
1. Generate the sitemap automatically
2. Include canonical URLs only
3. Add a Sitemap: line to robots.txt
4. Submit it in Search Console

## Prompt for an AI assistant
Copy the text below and paste it into an AI assistant.
```text
You are the person improving this website. Check the item below and fix it if it applies to the site.

Item: Is there a sitemap.xml link or reference?
Summary: Create a sitemap.xml with only the canonical URLs of public pages, and reference it from robots.txt.
Steps:
1. Generate the sitemap automatically
2. Include canonical URLs only
3. Add a Sitemap: line to robots.txt
4. Submit it in Search Console
References:
- sitemaps.org (https://www.sitemaps.org/protocol.html)
- Build a sitemap (Google) (https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)
- Search Console (https://search.google.com/search-console/about)

Constraints:
- Keep the existing design and tone of voice.
- Show the file or section you changed and the suggested final wording.
- Do not decide ambiguous points alone; give options and a recommendation.
- Do not change anything outside the listed item.
```

## Checked by
- **[audit](https://ismyappok.com/en/audit/checks)** — Pre-launch check (50 items)

## References
- **[sitemaps.org](https://www.sitemaps.org/protocol.html)** — sitemaps.org specification（Official）
- **[Build a sitemap (Google)](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)** — Google documentation（Official）
- **[Search Console](https://search.google.com/search-console/about)** — Google Search Console（Official）

## Check your site now
Enter a URL and find what is missing before launch, for free.
[Run audit](https://ismyappok.com/en/audit/check)