A `sitemap.xml` file is an XML file that lists the pages of a website, helping search engines understand its structure. Here’s a simple overview of its components:
- URLSet: The main container for the URLs.
- URL: Each individual URL entry within the sitemap.
- loc: The location of the webpage (URL).
- lastmod: The last modification date of the webpage.
- changefreq: How frequently the content is expected to change (e.g., daily, weekly).
- priority: The priority of the webpage relative to other pages on the site (range 0.0 to 1.0).
Here’s a basic example of what a `sitemap.xml` might look like:
https://www.example.com/
2023-10-01
daily
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
This structure helps search engines crawl and index the website efficiently.