sitemap.xml
A sitemap.xml file is an important tool for website optimization and SEO. It helps search engines understand the structure of your site and find all the pages you want to be indexed. Below is a simple example of the structure of a sitemap.xml file:
```xml
https://www.example.com/
2023-10-01
monthly
1.0
https://www.example.com/about
2023-09-15
yearly
0.8
https://www.example.com/contact
2023-08-20
yearly
0.6
```
In this example:
- <urlset>: The root element that contains all the URLs.
- <url>: A container for each individual URL entry.
- <loc>: The location of the page.
- <lastmod>: The date the page was last modified.
- <changefreq>: How frequently 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.
Make sure to update your sitemap regularly to reflect any changes on your site. You can submit the sitemap to search engines like Google through their webmaster tools to improve indexing.