sitemap.xml
A `sitemap.xml` file is an XML file that lists the URLs of a website along with additional metadata about each URL. This helps search engines like Google to crawl the site 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-20
yearly
0.5
```
### Key Elements:
- <url>: This tag defines a URL entry.
- <loc>: Specifies the location of the URL.
- <lastmod>: Indicates the last modified date of the URL.
- <changefreq>: Suggests how frequently the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: A value between 0.0 and 1.0 that indicates the importance of the URL relative to others on the site.
### Usage:
- Place the `sitemap.xml` file in the root directory of your website.
- Submit the sitemap to search engines via their webmaster tools for better indexing.