Skip to main content
Legia

SEO & Digital Marketing

What is an XML Sitemap?

Also called XML sitemap, site map, sitemap.xml.

Short definition

An XML sitemap is a file that lists a website's important URLs along with additional information such as the last modified date, to help search engines discover and crawl those pages.

When a sitemap helps most

Large websites, new websites that few other sites link to yet, websites whose pages are not well linked to each other, and websites that publish new content often. For a small site with tidy internal linking, Google can usually still find every page, but a sitemap remains useful as an official list and a monitoring aid.

What it should contain

Only canonical URLs that you actually want to appear in search. Redirected pages, pages marked noindex, and duplicates do not need to be listed. Google ignores priority and changefreq values but uses lastmod when it is consistently accurate, so that date should only change when the page content truly changes. A single sitemap file is limited to 50 MB uncompressed or 50,000 URLs; larger sites use several sitemaps gathered in a sitemap index.

How to submit it

List its location in robots.txt and submit it through Google Search Console. The sitemap report in Search Console shows whether the file was read and how many URLs were found. Submitting a sitemap does not guarantee every URL in it will be indexed; that decision stays with Google. Modern CMS platforms usually generate sitemaps automatically, but the contents still need checking so test pages or empty pages are not listed.

Related Legia service SEO Technical fixes, content structure, and local search, measured through to incoming inquiries.

Resources