sitemap.xml
A `sitemap.xml` file is an important tool for search engine optimization (SEO) and helps search engines understand the structure of your website. Here’s a basic overview of its components:
- XML Declaration: The file begins with an XML declaration to specify the version.
- URL Set: The root element is urlset, which contains all the URLs of your site.
- URL Entries: Each URL is enclosed in a url tag, which includes:
- loc: The URL of the page.
- lastmod: The last modified date of the page.
- changefreq: The frequency of changes (e.g., daily, weekly).
- priority: The priority of the page relative to other URLs on your site.
Here’s a simple example of what a `sitemap.xml` file might look like:
```xml
https://www.example.com/
2023-10-01
weekly
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
```
This structure helps search engines crawl your site more efficiently and index your pages properly.