sitemap.xml
A `sitemap.xml` file is an XML file that lists the URLs for a website along with additional metadata about each URL. This helps search engines crawl the website more intelligently.
Here’s a basic structure of a `sitemap.xml` file:
```xml
https://www.example.com/
2023-10-01
daily
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
https://www.example.com/contact
2023-09-10
yearly
0.5
```
### Key Elements
- <url>: Contains information about a specific URL.
- <loc>: The location of the URL.
- <lastmod>: The date when the URL was last modified.
- <changefreq>: How frequently the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: The priority of the URL relative to other URLs on the site (range from 0.0 to 1.0).
### Usage
- Place the `sitemap.xml` file in the root directory of your website.
- Submit the sitemap to search engines like Google through their respective webmaster tools.
- Regularly update the sitemap to reflect changes in your website's structure.