-
This is just a suggest for NGINX users like me. On your guide here: https://rankmath.com/kb/fix-sitemap-issues/ you suggest to use this rules to get sitemap
# NGINX REWRITES FOR RANK MATH SITEMAPS
#
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
I suggest to add the following line of code to avoid problems to get xls stylesheet
rewrite ^/([a-z]+)?-sitemap.xsl$ /index.php?xsl=$1 last;
in this way I solved my problem to get sitemap without reach 404 on main-sitemap.xslHope this can help all RankMath users. Can ask you if there is some discount about PRO version?
Cheers
The ticket ‘Missing on NGINX rules’ is closed to new replies.