sitemap.xml
A `sitemap.xml` file is an XML file that helps search engines understand the structure of a website. It provides a list of URLs and additional information about each page, which can improve SEO and ensure that all relevant pages are indexed.
Here is a simple structure of a `sitemap.xml`:
```xml
http://www.example.com/
2023-10-01
weekly
1.0
http://www.example.com/about
2023-09-15
monthly
0.8
http://www.example.com/contact
2023-08-20
yearly
0.5
```
### Key Elements
- <url>: This tag defines a URL entry.
- <loc>: The location of the URL.
- <lastmod>: The date the URL was last modified.
- <changefreq>: The frequency with which the URL is expected to change (e.g., always, hourly, daily, weekly, monthly, yearly, never).
- <priority>: The priority of the URL relative to other URLs on the site (range from 0.0 to 1.0).
Including a `sitemap.xml` file in your website's root directory can help search engines index your site more effectively.