The diagram shows one main node connected to three child nodes.

If you are interested in making the most of your website and that it appears in the best positions in the search results, in addition to being able to reach more people, it is important to have an XML sitemap.

An XML sitemap is a file that helps search engines understand the way a web page is organized, identifying its URL, as well as allowing web portal data to be found faster and much more efficiently.

If we attend to the definition of Google, we come across this: “A sitemap is a file where you can list the web pages of the site to inform Google and other search engines about the organization of the content. Search engine web crawlers like Googlebot read this file to more intelligently crawl your site. ".

A sitemap has a defined protocol that is made up of different XML tags, which is a language that allows information to be structured. This protocol is a standard used by the main search engines and supported by both Google and Bing and the rest of them.

Include a sitemap in a web page does not guarantee that search engines will index all added pages, but it is always recommended so that the tracking can be optimized.

Keep in mind that the URLs that are sent with the file must all belong to the same domain, since in this case it is not allowed to use subdomains and they must use the same protocol. You also have to take into account that if you have several websites in different routes or folders they should not be mixed in the same sitemap, but each of them must have its own.

How to make an XML sitemap

The XML sitemap protocol format consists of XML tags and must be encoded in UTF-8. A sitemap must:

  • Start with an opening tag <urlset>and end with a closing </urlset>.
  • Specify the namespace (standard protocol) on the labelurlset.
  • Include an entry <url>for each URL as a main XML tag.
  • Include a secondary entry <loc>for each main tag <url>.

All other labels are optional, always taking into account the compatibility of these tags with the search engines in which they will be used.

In addition, all URLs of a systemp must proceed a single host.

An example of XML sitemap for a single URL and with optional tags is as follows:

<?xml version="1.0" encoding="UTF-8"?><

urlset xmlns="http://creapublicidadonline.com/sitemap"

>   <url

>      <loc>http://www.example.com/</loc>

      <lastmod>2005-01-01</lastmod>

      <changefreq>monthly</changefreq>

      <priority>0.8</priority>

   </url></urlset> 

In any case, you should know that there are plugins for Wordpress that do this job for you, being the best option if you don't have knowledge and if you want to simplify the process, since they will be responsible for doing everything for you and making it possible to send URLs perfectly to search engines, making your web pages index in the most appropriate way.

The most used sitemaps

The most used type of sitemap is the XML type but it is not the only one that exists, since there are several and each of them has its own function. The most used are the following:

  • XML Sitemap: This file is responsible for facilitating the indexing of web page URLs in search engines, indicating to search engines that these URLs are available for tracking. It is recommended for any website, but especially for those with tracking problems.
  • HTML Sitemap: This type of web sitemap facilitates user browsing, showing web URLs in a more orderly way.
  • Video Sitemap: This file is used to indicate the URLs of the multimedia contents that are inserted in a web page. This way search engines are allowed to have more ease to find files in avi, mkv, mpg...
  • News Sitemap: This file is responsible for creating an organizational chart with the news, being perfect to be able to manage this information in Google News.
  • Image Sitemap: An image sitemap is recommended to be able to send the URLs of the images to the search engines if they are highly relevant on a web page. In this way you will expand the possibilities of them appearing in Google Images searches.