Using the Sitemap file

Sitemap is a file with links to site pages. The file informs search engines about the current site structure. Yandex supports XML and TXT formats. The XML format enables you to pass additional information.

Note. Yandex doesn't guarantee that all URLs in the file will be displayed in the search results.
  1. Do I need a Sitemap file?
  2. Formats supported by Yandex
  3. File requirements
  4. How do I create the file?

Do I need a Sitemap file?

Yandex develops special algorithms for the indexing robot to learn about the site. For example, with internal and external links from one page to another. Sometimes the robot can skip pages. Use the Sitemap file if your site has:

  • A large number of pages.
  • Pages without navigation links.
  • Deep nested structure.

Formats supported by Yandex

Yandex supports the Sitemap protocol. Use this format to inform about:
  • The date of the last page update (the lastmodlastmod element).

  • Frequency of the page updates (the changefreqchangefreq element).

  • The importance of the page (the prioritypriority element). Specify the value for the URLs that are most important for your site.

Example:

<?xml version = "1.0" encoding = "UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 
        <url>
            <loc>http://www.example.com/page1.html</loc>
            <lastmod>2005-01-01</lastmod>
            <changefreq>monthly</changefreq>
            <priority>0.8</priority>
        </url>
        ...
    </urlset>
    ...
</xml>

Tp pass information about videos, in the Sitemap file specify the links to XML feeds (for more information, see Help for Yandex.Video).

Restriction. Yandex search doesn't support transmitting information about images, RSS and Atom feeds with the Sitemap file.

File requirements

  • Use UTF-8UTF-8 encoding. The Yandex robot recognizes the Cyrillic URLs both in original and encoded format.
  • The file can contain a maximum of 50,000 URLs, and must not exceed 10 MB in uncompressed format. If your Sitemap doesn't meet these requirements, divide it into multiple files and list them in a Sitemap index fileSitemap index file.
  • Specify the links only to the pages of the domain where the file will be located.
  • Place the file on the same domain as the site that it was created for.
  • When the file is accessed, the server must return the HTTP code 200 OK.

How do I create the file?

  1. Define canonical URLs for the pages that will be included in the Sitemap file. This is necessary if the site has multiple pages with similar information.
  2. Select the format and create the file with one of the third-party resources.
  3. Check the file with the Sitemap file analysisSitemap file analysis tool.
  4. Specify the file link in the robots.txt file or in the Sitemap files section in Yandex.Webmaster.