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 and provides metadata about each page. This information helps search engines crawl the site more efficiently.
Here’s a basic structure of a `sitemap.xml` file:
```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
```
### Key Elements:
- <url>: Represents a single URL entry.
- <loc>: Specifies the location (URL) of the page.
- <lastmod>: Indicates when the page was last modified.
- <changefreq>: Suggests how frequently the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: Indicates the priority of the page relative to other pages on the site (scale of 0.0 to 1.0).
### Benefits of Using a Sitemap:
- Improves site indexing by search engines.
- Helps with the discovery of new pages.
- Informs search engines about updates to existing pages.
New Chat
Also available: ssh ch.at • curl ch.at/?q=hello • dig @ch.at "question" TXT
No logs • No accounts • Free software • GitHub