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 they are crawled and indexed. Here’s a basic structure of a `sitemap.xml`:
```xml
http://www.example.com/
2023-10-01
daily
1.0
http://www.example.com/about
2023-10-01
monthly
0.8
http://www.example.com/contact
2023-10-01
yearly
0.5
```
### Key Elements of a Sitemap
- <loc>: Specifies the URL of the page.
- <lastmod>: Indicates the last modification date of the page.
- <changefreq>: Suggests how frequently the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: Indicates the priority of the page relative to other pages on the site (values range from 0.0 to 1.0).
### Benefits of Using a Sitemap
- Improves website visibility to search engines.
- Helps search engines crawl the site more effectively.
- Can highlight important pages that may not be easily discoverable.