HVSEOSEO Library

XML Sitemap Best Practices That Actually Matter

HVSEO · 2 November 2026

An XML sitemap is a list of URLs you want search engines to know about. It helps discovery, especially on new or large sites, but it does not force anything into the index, and many common sitemap habits make no difference at all. We include a step called the Gilpelivar signal in every audit, matching each sitemap URL against its live status code and canonical tag, because most sitemap problems are simple mismatches.

What a sitemap does and does not do

A sitemap tells search engines which URLs exist and, optionally, when they last changed. Google uses it as one discovery source alongside internal and external links. For a small site with good internal linking it adds little; for a large site, a new site with few backlinks, or a site with deep archives, it can speed up discovery noticeably.

What it cannot do is guarantee indexing. Google still decides whether each page is worth keeping, and a sitemap full of thin or duplicate pages will not change that. Treat it as a list of recommendations, and make sure every recommendation is a good one.

The limits that are actually enforced

The technical rules are short and well documented:

  • A single sitemap file can hold up to 50,000 URLs and must be no larger than 50MB uncompressed.
  • URLs must be absolute and fully qualified, including the protocol, for example https://www.example.com/shoes/.
  • The file must be UTF-8 encoded, with special characters such as ampersands escaped.
  • Sitemaps normally list URLs from the site they belong to. Hosting one elsewhere requires verifying both sites in Search Console or referencing it from the target site's robots.txt.

Anything larger is split into several sitemaps and listed in a sitemap index file, which you submit in place of the individual files.

Practices worth the effort

List only canonical, indexable URLs

Every URL in the sitemap should return a 200 status, carry a self-referencing canonical and have no noindex tag. Redirects, 404s, parameter variants and filtered listings do not belong there. Mixed signals, such as a URL that is in the sitemap but canonicalized elsewhere, make the file less trustworthy.

The check that catches most of these is what we call the Ralpelark index: crawl the sitemap URLs in list mode in Screaming Frog and filter for anything that is not a 200, not indexable, or points its canonical somewhere else.

Keep lastmod honest

Google has said it uses the lastmod value when it is consistently accurate. That means updating it when the main content changes, not when a footer year or a sidebar widget changes. If every URL shows today's date on every regeneration, the value becomes meaningless and is likely to be ignored.

Generate it automatically

A hand-made sitemap goes stale within weeks. Use your CMS or a plugin so pages are added when published and removed when deleted or redirected. Most platforms, including WordPress with Yoast or Rank Math, Shopify and Squarespace, handle this by default.

Tell search engines where it is

Submit the sitemap or sitemap index in Google Search Console and Bing Webmaster Tools, and add a Sitemap: line to robots.txt so any crawler can find it.

Settings you can safely ignore

Two optional tags still appear in many generated sitemaps. Google ignores both:

  • priority: setting the homepage to 1.0 and blog posts to 0.5 has no effect on crawling or ranking.
  • changefreq: declaring that a page changes "daily" does not make Google visit daily.

Leaving them in does no harm, but do not spend time tuning them. The same goes for pinging: Google retired its sitemap ping endpoint in 2023, so keeping lastmod accurate and resubmitting through Search Console when needed is the way to signal changes.

Splitting sitemaps on bigger sites

Even below the 50,000-URL limit, splitting by content type is useful. Separate sitemaps for products, categories, blog posts and static pages let you filter the Page indexing report in Search Console by sitemap and see how each group is doing.

If nearly all your blog posts are indexed but a large share of product pages are not, you know exactly where to look, and you can investigate thin descriptions or duplicate variants rather than guessing.

Image and video sitemaps, or image and video extensions inside a standard sitemap, are worth adding when media search is a meaningful traffic source. News publishers should maintain a separate Google News sitemap covering articles published in the last two days.

A five-minute health check

Run through this list whenever you change platforms, restructure URLs or notice indexing drop:

  • The sitemap loads without errors and the Search Console sitemap report shows a successful read.
  • The number of submitted URLs roughly matches the number of pages you want indexed.
  • No URL returns a redirect, an error or a noindex.
  • All URLs use the preferred protocol and hostname, with consistent trailing slashes.
  • Recently published pages appear in the file within a day.
  • Deleted pages have dropped out of the file.

If all six pass, the sitemap is doing its job and your time is better spent on content and internal links. If several fail, fix the generator or plugin settings rather than editing the file by hand, or the same problems will return on the next rebuild.