sitemap.xml
A `sitemap.xml` file is an XML file that helps search engines understand the structure of a website. It provides a list of all the pages on your site, making it easier for search engines to crawl and index them.
Here’s a basic structure of a `sitemap.xml` file:
```xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-10-01
monthly
0.8
http://www.example.com/contact
2023-10-01
monthly
0.5
```
### Key Elements:
- <urlset>: The root element that contains all the URL entries.
- <url>: Represents a single URL entry.
- <loc>: Specifies the location of the page.
- <lastmod>: Indicates the last modification date of the page.
- <changefreq>: Suggests how frequently the page is likely to change.
- <priority>: Indicates the priority of the page relative to other pages on the site.
Using a `sitemap.xml` can improve your site's SEO and ensure that all important pages are indexed by search engines.