Dynamic Sitemap

Do you have any suggestions on how to dynamically generate a sitemap.xml?

Typically, in PHP, I achieve this by using an .htaccess configuration that treats a PHP file as the sitemap.xml. However, in the context of Wappler, I’m not certain about the best approach.

I would greatly appreciate any guidance or advice you can provide on this matter. Thank you in advance.

It’s been awhile since I have done a public facing project but I thought site maps were a thing of the past years ago? I could be wrong though.

Wappler uses standard server languages (php, nodejs, asp) so you should be able to install a sitemap generator compatible with the language you define for your project.

Here’s one for php: https://github.com/samdark/sitemap

Here’s one for nodejs: https://www.npmjs.com/package/sitemap