<sitemap.xml> is an XML file that provides information about the pages of a website to search engines. It helps improve the site's indexing and visibility. Here’s a simple overview of its components:
- URL Set: This includes the list of URLs on the website that you want search engines to crawl.
- Last Modified: Indicates the last time a page was updated, helping search engines prioritize which pages to crawl.
- Change Frequency: Suggests how often a page is likely to change (e.g., daily, weekly, monthly).
- Priority: Assigns a relative priority to the pages (from 0.0 to 1.0) to guide search engines on which pages are most important.
Here is a simple example of what a <sitemap.xml> file might look like:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap-image/1.1">
<url>
<loc>http://www.example.com/</loc>
<lastmod>2023-10-01</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.example.com/about</loc>
<lastmod>2023-09-28</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
In summary, a <sitemap.xml> file is essential for optimizing a website's search engine presence by clearly defining the structure and importance of its pages.