sitemap.xml
A `sitemap.xml` file is an XML file that lists the URLs for a site and provides important information about each URL. This helps search engines crawl the site more effectively.
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-08-20
yearly
0.5
```
### Key Elements:
- loc: The URL of the page.
- lastmod: The date the page was last modified.
- changefreq: How often the page is likely to change (e.g., daily, weekly, monthly).
- priority: The priority of the page relative to other pages on the site, on a scale from 0.0 to 1.0.
### Benefits of a Sitemap:
- Improves site crawling by search engines.
- Helps search engines understand the structure of the site.
- Can include metadata about specific pages.
Make sure to submit your `sitemap.xml` to search engines like Google for better indexing.