Creative agency glossarySEO and Analytics

XML Sitemap

An XML sitemap is a machine-readable file that lists the URLs a website wants search engines to crawl and index, along with when each was last changed.

What is an XML sitemap?

An XML sitemap is a file, usually at /sitemap.xml, written in a standard format that search engines read. Each entry is a URL, optionally with the date it was last modified, and nothing else of importance; the change frequency and priority fields the format allows are ignored by Google. The file is a list, not a map in any visual sense, and it exists for one reason: to tell crawlers which pages exist, so that discovery does not depend on following links.

Large sites use a sitemap index, a file that lists other sitemap files, because a single sitemap is capped at fifty thousand URLs and fifty megabytes. Specialized sitemaps extend the format for images, video and news with the extra fields those formats need, and a separate sitemap can be kept for each content type so that reports in Search Console are easier to read.

Why it matters

Why an XML sitemap matters

Crawlers find pages by following links, and links miss things: new pages that nothing points to yet, deep pages with few internal links, pages on large sites that are simply far down the queue. The sitemap makes discovery complete. The last-modified date adds efficiency: a crawler can see which pages changed since its last visit and spend its budget there rather than refetching the unchanged. On a site with tens of thousands of pages that difference decides whether updates are seen in days or months.

Search Console reports indexing per sitemap, so the file is also the measuring stick: how many URLs were submitted and how many were indexed, and for those that were not, why.

In practice

How an XML sitemap works in practice

  1. 01

    The sitemap is generated automatically by the content management system or an SEO plugin and updated as pages are published, edited and removed. It is referenced in robots.txt with a Sitemap: line and submitted in Google Search Console and Bing Webmaster Tools. For large sites it is split by type or section, each under a sitemap index, with video and image sitemaps where those assets matter.

  2. 02

    The rules keep it honest. It lists only canonical, indexable URLs that return a 200 status: no redirects, no errors, no noindexed pages, no parameter variants, no pages behind a login. Last-modified dates reflect real changes, not the time the file was generated. The sitemap is checked after every migration or template change, and the submitted-versus-indexed gap in Search Console is read monthly, because a widening gap is an early warning of a quality or technical problem.

At RIOT

XML sitemaps at RIOT

AltSounds, our music video channel, has far more URLs than a single sitemap file is allowed to hold, so it runs a sitemap index that splits the catalog across many files. For a catalog that size the sitemap is not a courtesy; it is how search engines keep up with what has been added.

See the work →

Watch out

What people get wrong about XML sitemaps

Including everything. A sitemap stuffed with redirects, noindexed pages and duplicates trains the crawler to distrust it, and the useful entries lose their weight. The other mistake is faking the dates: setting last-modified to today on every URL every time the file is built, which makes the field meaningless. And many sites never submit it or reference it in robots.txt, so the file exists and nobody has told the engines.

Questions

People also ask

What should an XML sitemap include?

Only canonical, indexable URLs that return a 200 status, with accurate last-modified dates. Leave out redirects, error pages, noindexed pages, parameter variants and anything behind a login. Split large sites into several files under a sitemap index.

How do I submit an XML sitemap to Google?

Add a Sitemap: line to robots.txt pointing at the file, then submit the URL in Google Search Console under Sitemaps. Bing Webmaster Tools accepts it the same way. Resubmission is not needed when the file updates; the engines refetch it on their own.

Does an XML sitemap guarantee indexing?

No. It guarantees that search engines know the URL exists. Whether a page is indexed still depends on its quality, uniqueness and the rest of the site's signals. Search Console shows which submitted URLs were indexed and why the others were not.

Next to it in the glossary

  1. 200 (OK) Response CodeA 200 OK response code is the server's confirmation that a request succeeded and the page was delivered as asked.
  2. 301 RedirectA 301 redirect is a permanent instruction that sends browsers and search engines from an old URL to a new one, carrying the old page's ranking signals with it.
  3. 302 RedirectA 302 redirect is a temporary instruction that sends visitors from one URL to another while telling search engines the original address will return.
  4. 304 Not ModifiedA 304 Not Modified response tells a browser or a crawler that the page has not changed since it was last fetched, so the cached copy can be used instead.
  5. 307 Temporary RedirectA 307 Temporary Redirect sends a visitor to a different URL for now, while guaranteeing that the request is repeated exactly as it was made.
  6. 403 ForbiddenA 403 Forbidden error means the server understood the request but refuses to serve the page, usually because the visitor does not have permission to see it.

Every SEO and Analytics term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage