Правильный sitemap.xml

Correct sitemap.xml

Correct sitemap.xml

Sitemap.xml  is an xml file containing a full map of the site. This file allows you to specify all pages of your website and some properties to improve performance of search engines.

Sitemap.xml consists of the following parts

  • <?xml version="1.0" encoding="UTF-8"?>  pointer version and the encoding of xml file
  • <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> — a container of a list of pages with indicating the version of the standard sitemap files
    • <url> — the opening of the container descriptions one page
      • <loc>http://crazysquirrel.ru/</loc>  absolute address of the page of the site
      • <lastmod>2013-06-28</lastmod> — last modification date of the page (must be in the W3C Datetime.)
      • <changefreq>daily</changefreq> — частота изменений страницы (always,hourly,daily,weekly,monthly,yearly,never)
      • <priority>1</priority> — the importance of a page in General site content (the value from 0 to 1)
    • </url> — closing of the container descriptions one page
  • </urlset> — closing of the container pages list

Any sitemap must contain in itself:

  • <?xml version="1.0" encoding="UTF-8"?> (only one first line)
  • <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> (only one second line)
  • <url> contains <loc> (at least one)
  • </url> </loc> (in number opening/closing)

The optimal solution is when sitemap contains <url> with indicating <loc> <priority>
An example file sitemap.xml (shortened version):

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

Check sitemap.xml you can by means of tools Yandex.

Generate sitemap.xml for your site.