sitemap.xml
A sitemap.xml file is an XML file that lists the URLs of a website along with additional metadata about each URL. It helps search engines like Google to crawl the site more effectively. Here’s a simple structure of a sitemap.xml file:
```xml
https://www.example.com/
2023-10-01
daily
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
https://www.example.com/contact
2023-09-20
yearly
0.5
```
In this example:
- <url>: Contains information about a specific URL.
- <loc>: The location of the URL.
- <lastmod>: The date the URL was last modified.
- <changefreq>: How frequently the URL is likely to change.
- <priority>: The priority of the URL relative to other URLs on the site.
Creating a sitemap.xml is essential for improving SEO and ensuring that search engines can find and index all important pages of your website.