sitemap.xml
A `sitemap.xml` file is an XML file that helps search engines understand the structure of a website. It lists the URLs of a site along with additional metadata about each URL. This can help search engines crawl the site more effectively.
Here’s a basic structure of a `sitemap.xml`:
```xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-09-15
yearly
0.8
http://www.example.com/contact
2023-08-20
yearly
0.6
```
In this example:
- <urlset>: The root element of the sitemap.
- <url>: Contains information about a specific URL.
- <loc>: The location of the URL.
- <lastmod>: The last modification date of the URL.
- <changefreq>: How frequently the URL is expected to change.
- <priority>: The priority of the URL relative to other URLs on the site.
This structure can be expanded with more URLs as needed, ensuring that search engines have a comprehensive view of your site's content.