I use wordpress and Rankmath, but my sitemap_index page has no content.
Here is the code in my URL rewrite:
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 last;
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
# END Nginx Rewrites for Rank Math Sitemaps
/index.php?sitemap=1 displays properly but when I declare it at search-console error: Your sitemap appears to be an HTML page.