A sitemap.xml file is an XML file that lists the pages of a website to help search engines understand its structure. Here’s a basic overview of its components:
- URL Set: The main structure of the sitemap that contains all the URLs.
- URL Entry: Each URL entry typically includes the following:
- loc: The location of the URL.
- lastmod: The date the URL was last modified.
- changefreq: How frequently the URL is expected to change (e.g., daily, weekly).
- priority: The priority of the URL relative to other pages on the site (range from 0.0 to 1.0).
Here’s a simple example of a sitemap.xml file:
https://www.example.com/
2023-10-01
daily
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
This basic structure helps search engines crawl and index the website more efficiently.