A `sitemap.xml` file is an XML file that helps search engines understand the structure of your website. It provides information about the pages, videos, and other files on your site, and the relationships between them. Here’s a simple overview of what a `sitemap.xml` typically includes:
- URL: The address of a page on your website.
- Last Modified: The date when the page was last updated.
- Change Frequency: How often the page is likely to change (e.g., daily, weekly, monthly).
- Priority: The priority of the page relative to other pages on your site (a value between 0.0 and 1.0).
Here’s a basic example of a `sitemap.xml` file:
<?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>monthly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.example.com/about</loc>
<lastmod>2023-10-01</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
Make sure to update your `sitemap.xml` regularly and submit it to search engines to help improve your site's SEO.