Sitemap

SEO, AEO & GEO Glossary

A sitemap is a file or page listing a website's URLs so search engines and visitors can find content. XML sitemaps serve crawlers; HTML sitemaps serve people.

What is a Sitemap?

A sitemap is a file or page that lists the URLs on a website so search engines and people can find its content. The most common type is an XML sitemap, which tells crawlers which pages exist and when they last changed. HTML sitemaps are ordinary pages of links for visitors. Neither guarantees indexing, but both aid discovery.

Search engines find most pages by following links. A sitemap fills the gaps: brand-new pages that nothing links to yet, deep pages in large catalogs, or content that changes often. The XML format is defined by the sitemaps.org protocol, which Google, Bing and other engines support.

How it works

  1. Generate the sitemap. Most CMSs and frameworks (WordPress with Yoast, Astro, Next.js, Shopify) generate one automatically.
  2. List canonical URLs only. Each entry is a <url> with a <loc> and, optionally, <lastmod>.
  3. Split large sites. One sitemap file can hold up to 50,000 URLs or 50 MB uncompressed; beyond that, use a sitemap index file that points to several sitemaps.
  4. Make it discoverable. Reference it in robots.txt with a Sitemap: line and submit it in Google Search Console and Bing Webmaster Tools.
  5. Monitor. Check the sitemap reports for fetch errors and the ratio of submitted to indexed URLs.

Specialized sitemaps exist for images, video and news, and hreflang annotations for international sites can be placed in sitemaps instead of page headers.

Examples

  • A B2B SaaS company publishes a new glossary of 300 terms. Because few pages link to the glossary yet, it adds a dedicated glossary sitemap so the URLs are discovered quickly, then tracks how many get indexed.
  • A cybersecurity research site with thousands of vulnerability pages splits its sitemaps by section (advisories, blog, docs) so indexing problems can be isolated per section in Search Console.

Best practices

  • Exclude noindexed, redirected, 404 and non-canonical URLs. A sitemap full of errors is a weak signal.
  • Keep lastmod honest. Google uses lastmod when it is consistently accurate and ignores priority and changefreq.
  • Segment sitemaps by page type to diagnose indexing by section.
  • Regenerate automatically on publish, rather than maintaining a static file by hand.

Common mistakes

  • Listing staging or parameter URLs.
  • Forgetting to update the sitemap after a migration, so it still lists redirected URLs.
  • Expecting the sitemap to fix pages that are excluded for quality or duplication reasons.

AI engines that cite web pages, such as Google AI Overviews, Microsoft Copilot and ChatGPT search, depend on search indexes and crawlers to find content. A clean sitemap speeds discovery of new or updated pages in those indexes. For Bing and several other engines, pairing sitemaps with IndexNow can push changes faster; Google does not use IndexNow.

Sources

Frequently asked questions

Do I need a sitemap?

Google says small, well-linked sites (roughly a few hundred pages or fewer) may not need one, but a sitemap rarely hurts. It is most valuable for large sites, new sites with few external links, sites with pages that are hard to reach through navigation, and sites with lots of video, image or news content.

What is the difference between an XML sitemap and an HTML sitemap?

An XML sitemap is a machine-readable file for search engines that lists URLs and optional metadata such as last modified date. An HTML sitemap is a regular web page with links for human visitors, useful on large sites as a navigation aid. Most SEO discussions about sitemaps mean the XML version.

Does submitting a sitemap guarantee my pages get indexed?

No. A sitemap is a discovery hint. Search engines still decide whether each URL is worth crawling and indexing based on quality, duplication and technical signals. Search Console's sitemap report shows how many submitted URLs were indexed and why others were not.

Technical SEOCrawlingIndexing

Do not let AI keep
recommending someone else

Start your 7-day free trial and get your AI Visibility Score in about a minute. See exactly where you stand, where competitors are beating you, and the ranked fixes to get into the answer. Cancel anytime before the trial ends.

7-day free trial. Cancel anytime before it ends. Trusted by 500+ B2B SaaS teams.

Partnered with
Powered by