sitemap.xml
A `sitemap.xml` file is used to inform search engines about pages on your site that are available for crawling. Here's a simple breakdown of its structure:
- Declaration: Indicates the XML version and encoding.
- URL Set: Contains the list of URLs to be indexed.
- URL Entry: Each URL entry includes:
- loc: The URL of the page.
- lastmod: The date when the page was last modified.
- changefreq: How frequently the page is likely to change.
- priority: The priority of the page relative to other pages on the site.
Here’s a simple example of a `sitemap.xml` structure:
```xml
http://www.example.com/
2023-10-01
daily
1.0
http://www.example.com/about
2023-09-15
monthly
0.8
```
This structure helps search engines understand your website better and enhances its visibility in search results.