An XML Sitemap is a file that lists the URLs of a website’s pages, along with additional metadata about each page, such as the last modified date and the frequency of updates. It helps search engines understand the structure and content of a website more efficiently, enabling them to crawl and index the site’s pages more effectively.
<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>
<url>
<loc>https://www.example.com/page1</loc>
<lastmod>2022-01-20</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.example.com/page2</loc>
<lastmod>2022-01-18</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://www.example.com/page3</loc>
<lastmod>2022-01-15</lastmod>
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
</urlset>
In this example: