sitemap.xml
A `sitemap.xml` file is an XML file that helps search engines understand the structure of your website while crawling it. Here's a basic overview of its components:
- URL Set: The root element that contains all the URLs.
- URL: Each URL entry typically includes the following elements:
- loc: The location of the page (URL).
- lastmod: The date the page was last modified.
- changefreq: How frequently the page is likely to change (e.g., always, hourly, daily).
- priority: The priority of the page relative to other pages on the site (range from 0.0 to 1.0).
Here is an example of a simple `sitemap.xml` structure:
https://www.example.com/
2023-10-01
daily
1.0
https://www.example.com/about
2023-09-15
monthly
0.8
This file should be placed in the root directory of your website and can be submitted to search engines to improve indexing.