sitemap.xml
A `sitemap.xml` file is an XML file that helps search engines like Google understand the structure of a website. It lists the URLs for a site along with additional information about each URL, such as how often it is updated and its importance relative to other URLs on the site.
Here’s a basic structure of a `sitemap.xml` file:
```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 Components:
- <urlset>: The root element that contains all the URLs.
- <url>: Represents a single URL entry.
- <loc>: Specifies the URL of the page.
- <lastmod>: Indicates the last modification date of the page.
- <changefreq>: Suggests how often the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: A value between 0.0 and 1.0 that indicates the importance of the URL relative to others on the site.
Using a `sitemap.xml` can improve a website's SEO by ensuring that search engines can crawl and index all the important pages efficiently.