Closed ghost closed 4 years ago
What's your webserver ?
If you are on nginx, have you tried this fix https://discuss.flarum.org/d/14941-fof-sitemap/13 ? It was previously in the README but it seems like it was removed at some point. We should re-add it.
Another option if the "automatic" mode doesn't work, you could use the Disk Mode via a CRON task https://github.com/FriendsOfFlarum/sitemap#cache-or-disk-mode
I am using nginx webserver. I added and it improved:
location = /sitemap.xml
{
try_files $uri $uri/ /index.php?$query_string;
}
Glad to hear that! I have fixed the README so that hopefully other people will find the fix if they need it.
I still find it odd that it's not always required. On some nginx servers it works out of the box, while on others it requires this additional rule. At least we know a solution.
https://forum.sourceturk.net/sitemap.xml The link does not work. No log recording.