`location ~ ([^/]*)sitemap(.*).x(m|s)l$ {
rewrite ^/sitemap.xml$ /index.php?wds_sitemap=1&wds_sitemap_type=index last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?wds_sitemap=1&wds_sitemap_type=$1&wds_sitemap_page=$2 last;
}`
Will this work for the robots.txt too ?
Well, for now, I’m just using another sitemap plugin (google xml-sitemap or something like that), because this plug-in provide some rewrite rules if you get 404 not found, and these work. For the robots.txt, well, It still not working, but I feel like it is not necessary.