Level Marketing / Articles / Paid ads

XML sitemap: what to include and how to submit it

November 30, 2026 · 8 min read

XML sitemap: what to include and how to submit it

An XML sitemap is a list of the pages on your site that should appear in search, written in a special XML format for search engine crawlers. It tells Google and Yandex: "these URLs exist, they matter, and this is when they last changed." A sitemap does not lift your rankings, but it helps crawlers find new and deeply buried pages faster and more completely. Below: what goes in, what stays out, how to submit it, and how to build one for a three-language site.

How a sitemap works

Crawlers discover pages in two ways: by following links and by reading your list. The sitemap is the second way. Each entry usually has two parts: <loc>, the full page URL, and <lastmod>, the date the main content last changed.

The key rules from Google's official guide (Google Search Central: build a sitemap):

  • one file holds at most 50,000 URLs or 50 MB uncompressed; a larger site splits the map into several files and lists them in a sitemap index;
  • the file is UTF-8 encoded and uses full, absolute URLs (with https://);
  • Google ignores the <priority> and <changefreq> tags;
  • <lastmod> is used only if it is consistently and verifiably accurate;
  • submitting a sitemap is only a hint: Google does not guarantee it will download or use it.

In other words, a sitemap is a polite "please look at these", not a command. Whether a page gets indexed depends on its quality, uniqueness and internal links. For the bigger picture, see What is SEO? How to rank a website in Google and Yandex.

What belongs in a sitemap and what does not

The most common mistake is dumping "everything" into the map. It should contain only canonical pages you actually want in search results.

Page typeInclude?Why
Service, product and category pagesYesMain entry points from search
Blog articlesYesNew content gets found faster
Home, About, ContactsYesBrand searches
URLs with UTM or filter parameters (?utm_source=...)NoDuplicate, not canonical
On-site search resultsNoEndless low-value pages
Thank-you page, cart, account areaNoNot meant as search landing pages
Page with noindexNoContradictory signal
Page blocked in robots.txtNoThe crawler cannot read it anyway
Redirecting (301) or 404 URLNoOnly the final working address

Decision rule: a page goes into the sitemap only if three things are true — it returns status 200, it has no noindex, and its canonical URL points to itself. If any one fails, take it out. robots.txt and the sitemap must not contradict each other; more on that in Robots.txt guide: syntax, dangerous mistakes and testing.

lastmod: when it helps and when it hurts

Google recommends updating <lastmod> when the main content, structured data or links change significantly. A new copyright year in the footer or a view counter does not count as a significant change.

Many site builders and plugins stamp today's date on every page every day. Then lastmod means nothing, and Google may stop trusting it. Done right, the date changes only when text, prices, images or structure change.

Submitting to Google and Yandex

There are two main ways to submit a sitemap, and it is best to use both.

MethodGoogleYandex
Webmaster panelSearch Console → "Sitemaps" reportYandex Webmaster → "Indexing" → "Sitemap files"
Line in robots.txtSitemap: https://sayt.uz/sitemap.xmlSame line
"Ping" requestNot working since 2023—

Google announced in 2023 that it was retiring the sitemap ping endpoint, because most of those submissions were spam (Google Search Central blog). So do not rely on the "ping Google" feature of old plugins.

According to Yandex's help, a newly added file joins a queue and the robot loads it within two weeks; you do not need to re-add a changed file, because the robot checks for updates regularly. If you request a recrawl from the interface, the data loads within three days (Yandex Webmaster: Sitemap). How to connect Search Console is covered in Google Search Console guide for business owners.

A sitemap for a three-language site (uz/ru/en)

Many sites in Uzbekistan run in three languages: /, /ru/, /en/. On such a site each language version is a separate URL in the sitemap, and the versions can be linked with hreflang. Google allows this inside the sitemap using xhtml:link elements (Google: localized versions):

  • each <url> block lists every language version of the page, including itself;
  • links must be reciprocal: if the uz page points to ru but the ru page does not point back, the tags are ignored;
  • language codes follow ISO 639-1: uz, ru, en; x-default marks the page shown when no version matches the user's language.

For one services page the block looks roughly like this:

  • <loc>https://sayt.uz/en/services/</loc>
  • <xhtml:link rel="alternate" hreflang="uz" href="https://sayt.uz/xizmatlar/"/>
  • <xhtml:link rel="alternate" hreflang="ru" href="https://sayt.uz/ru/uslugi/"/>
  • <xhtml:link rel="alternate" hreflang="en" href="https://sayt.uz/en/services/"/>

The same three lines repeat in the uz and ru page blocks. If an article exists in only one language, it needs no hreflang — never point to a translation that does not exist.

Worked example: a 120-page furniture store site

Illustrative example. A furniture store in Tashkent has 40 products, 8 categories, 20 articles and 5 service pages on its site — 73 useful pages, or 219 URLs across three languages. The sitemap generated by its plugin, however, contained 1,140 URLs.

What we foundURLsAction
Colour and price filters (?color=, ?price=)610Remove from map; canonical = category
Tag and archive pages190Remove; set noindex on useless ones
http:// and www duplicates95https only, one host
Old products returning 40426Delete or 301-redirect
Useful pages (uz/ru/en)219Keep, with hreflang

After the clean-up the sitemap held 219 URLs. In Search Console's indexing report the "submitted but not indexed" line shrank accordingly, and the work narrowed to the pages that genuinely had problems. Note that the sitemap did not raise rankings here — it cleaned up the signal and made the real problem pages visible.

How to check it in practice

  • Open it in a browser: does sayt.uz/sitemap.xml load, and does it contain full https URLs?
  • Search Console → Sitemaps: status "Success", and the discovered URL count close to your own count.
  • Search Console → Pages (indexing): filter to sitemap URLs only and read the "not indexed" reasons.
  • Yandex Webmaster → Sitemap files: errors and last download date.
  • Google Sheets: import the sitemap and check each URL's status code and canonical; every row that is not 200 is a task to fix.

Depending on your platform, the sitemap is generated automatically or by hand; on choosing a platform, see How to build a business website: site builder, AI or developer.

Common mistakes and myths

  • "Submit a sitemap and the site will rank." No. It helps discovery, not ranking.
  • priority 1.0 on every page. Google does not read this tag.
  • noindex pages in the map. Telling the crawler "look" and "don't index" at once.
  • lastmod that changes every day. The signal loses its value.
  • Old domain URLs after a migration. The map must list only the current domain and protocol.
  • A sitemap instead of structured data. A sitemap does not explain what a page is about; that is the job of Schema markup: structured data that still works in 2026.

Questions and answers

Does a small site need a sitemap?

Google says you may not need one if your site has about 500 pages or fewer and every important page is reachable through links from the home page. Still, a sitemap is free, generated automatically and makes indexing easier to monitor in Search Console, so it is worth having even on a 10-page site.

Do I need a separate image sitemap?

Google supports extensions for images, video and news. If image search traffic matters for your products (furniture, clothing), the image extension is useful. A service company usually needs only a standard sitemap.

Do I need a separate sitemap for Yandex?

No, one file serves both search engines. Reference it with a Sitemap: line in robots.txt and add it in both webmaster panels.

How long until a new article is indexed?

There is no fixed timeline, and nobody can guarantee one. To speed things up, link to the new page from existing pages and request indexing through URL Inspection in Search Console.

Conclusion

A sitemap is your site's table of contents for search engines. It pays off when it lists only canonical, working pages without noindex, when lastmod is updated honestly, and when it is referenced in robots.txt and submitted in both webmaster panels. On a three-language site, a sitemap with hreflang keeps language versions from getting mixed up. If you would like us to review your sitemap, indexing and search visibility, request a free audit from Level Marketing.

More on this topic

Read next