I just change the sitemap plugin from Yoast to another name “XML sitemap and Google News feed”.
https://wordpress.org/plugins/xml-sitemap-feed/
The plugin work fine except it add a slash at the end of the xml, like http://mydomain.com/sitemap.xml/ , it become a directory rather than a file.
I asked the plugin author, it said because the sitemap.xml is not a real static file, so in most nginx settings, it will pass to php-fpm so it will add a slash after it.
May I ask what rewrite rule I should add to the config files?
Thanks