A `sitemap.xml` file is an XML file that lists the URLs for a site along with additional metadata about each URL. This helps search engines like Google to crawl the site more effectively.
Here is a simple structure of a `sitemap.xml` file:
```xml
http://www.example.com/
2023-10-01
daily
1.0
http://www.example.com/about
2023-09-25
monthly
0.8
http://www.example.com/contact
2023-09-15
yearly
0.5
```
Key elements of a `sitemap.xml` include:
- <url>: Each URL entry in the sitemap.
- <loc>: The location of the URL.
- <lastmod>: The last modification date of the URL.
- <changefreq>: How frequently the page is likely to change.
- <priority>: The priority of the URL relative to other URLs on your site.
Using a `sitemap.xml` file can enhance your site's SEO and ensure that search engines properly index your pages.