A `sitemap.xml` file is an XML document that helps search engines understand the structure of a website. It provides information about the pages, videos, and other files on the site, as well as the relationships between them. Here’s a basic overview of its structure:
- URLSet - The main container for URLs.
- URL - Each URL entry contains:
- loc - The URL of the page.
- lastmod - The date the page was last modified.
- changefreq - How often the page is likely to change.
- priority - The priority of the page relative to other URLs on the site.
Here’s a simple example of a `sitemap.xml`:
https://www.example.com/
2023-10-01
daily
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
This format helps search engines like Google crawl the site more effectively, ensuring all important pages are indexed.