sitemap.xml
A `sitemap.xml` file is an XML file that provides search engines with information about the pages on your website. It helps improve the indexing of your site by making it easier for search engines to find and understand the structure of your content.
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
```
In this example:
- <url>: Represents a single URL on your site.
- <loc>: The location of the URL.
- <lastmod>: The date when the URL was last modified.
- <changefreq>: How frequently the content at the URL is likely to change (e.g., daily, monthly, yearly).
- <priority>: The priority of the URL relative to other URLs on your site (value between 0.0 and 1.0).
Creating a `sitemap.xml` is essential for SEO as it helps search engines crawl your site more intelligently.