pageboard / server

Web site building system - server packages
MIT License
4 stars 0 forks source link

Improve sitemap using xml format #86

Open kapouer opened 3 years ago

kapouer commented 3 years ago

https://www.sitemaps.org/protocol.html

This allows bots to avoid unnecessary requests to pages that have not changed. It is useful because bot traffic can actually be an important part of the server load.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
      <loc>http://www.example.com/</loc>
      <lastmod>2005-01-01</lastmod>
      <changefreq>monthly</changefreq>
   </url>
</urlset> 
kapouer commented 3 years ago

which should sit at "https://domain.com/sitemap.xml", besides "/sitemap.txt"