sitemap.xml
A `sitemap.xml` file is an XML file that lists the URLs for a website along with additional metadata about each URL. It helps search engines like Google to crawl the site more intelligently.
Here’s 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-15
monthly
0.8
http://www.example.com/contact
2023-08-30
yearly
0.5
```
### Key Elements
- <url>: Contains information about a single URL.
- <loc>: The location of the URL.
- <lastmod>: The last modification date of the URL.
- <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 (from 0.0 to 1.0).
Using a `sitemap.xml` file can enhance your website's SEO by providing search engines with a clear map of your site's content.