sitemap.xml
A `sitemap.xml` file is an XML document that helps search engines understand the structure of your website. It provides a list of URLs for your site, allowing search engines to crawl and index your pages 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-20
monthly
0.8
https://www.example.com/contact
2023-08-15
yearly
0.5
```
In this example:
- <url>: Represents a single URL entry.
- <loc>: Specifies the URL of the page.
- <lastmod>: Indicates when the page was last modified.
- <changefreq>: Suggests how often the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: Indicates the priority of the page relative to other pages on your site (from 0.0 to 1.0).
Using a `sitemap.xml` file can greatly enhance SEO by ensuring that your important pages are indexed. Be sure to submit your sitemap to search engines like Google through their webmaster tools.