sitemap.xml
A `sitemap.xml` file is an XML document that helps search engines understand the structure of a website. It lists all the important pages on the site, ensuring that search engines can discover and index them effectively.
Here’s a basic example of how a `sitemap.xml` might look:
```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-08-20
yearly
0.5
```
In this example:
- <urlset>: The root element that wraps all the URLs.
- <url>: Each individual URL entry.
- <loc>: The location of the page (URL).
- <lastmod>: The last modification date of the page.
- <changefreq>: How often the page is likely to change.
- <priority>: The priority of the URL relative to other URLs on the site.
Creating a `sitemap.xml` can improve your site's search engine optimization (SEO) by making it easier for search engines to find and index your pages.