sitemap.xml
A `sitemap.xml` file is an XML document that helps search engines understand the structure of a website. It lists all the important pages on the site to ensure that search engines can find and index them effectively.
Here’s a simple 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
```
Here’s a breakdown of the elements used in the `sitemap.xml`:
- <urlset>: The root element that contains all the URL entries.
- <url>: Each entry for a specific URL on the website.
- <loc>: The location of the page (URL).
- <lastmod>: The date the page was last modified.
- <changefreq>: How frequently the page is likely to change (e.g., daily, weekly, monthly