sitemap.xml
A `sitemap.xml` file is an XML file that lists the URLs for a website along with additional metadata about each URL. This helps search engines like Google to crawl the site more efficiently. Here’s a basic structure of a `sitemap.xml` file:
```xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-10-01
yearly
0.5
http://www.example.com/contact
2023-10-01
yearly
0.5
```
### Key Elements:
- <urlset>: The parent tag that contains all URLs.
- <url>: Each URL entry in the sitemap.
- <loc>: The location of the webpage.
- <lastmod>: The last modification date of the URL.
- <changefreq>: How often the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: The priority of the URL relative to other URLs on the site (0.0 - 1.0).
### Usage:
- Create a `sitemap.xml` file and place it in the root directory of your website.
- Submit the sitemap to search engines via their webmaster tools for better visibility.