Sitemap.xml — is a structured .xml file that contains renewable information about website`s pages that need to be indexed by search engines. The file is placed in the root directory of resource. It can be formed manually or automatically by CMS scripts or modules.
In this article we are going to answer all frequently asked questions like: why is it necessary, how to create it, what should be included in it and what kinds of sitemap.xml exist.
So, what is it for. Sitemap can sufficiently boost web resource`s indexation. It helps SE to define nesting level of pages and page’s last modification date. Using sitemap is extra important for big web portals, online stores and other resources with a vast site structure.
Types of sitemap.xml
Each site usually has several sitemaps depending on the content type:
sitemap-category.xml — contains info about 1-4 nesting level pages;
sitemap-products.xml — includes information about product cards of your online store;
sitemap-images.xml — this sitemap contains information about pictures only and for now only Google can “read” it;
sitemap.xml — main sitemap file that includes all other files` info.
All these files have to be placed in the root directory of the website (example: domain.com/sitemap-images.xml) and the main sitemap.xml file should include links to them.
Content of sitemap.xml file
All xml files need to have a clear structure using tags that SE robots understand. Let’s look at it more closely:
This is a part of code that contains just one link.