Hello,
When using Rankmath, it recommend the following write rules:
# START 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;
# END Nginx Rewrites for Rank Math Sitemaps
When I use the command wo site edit mysite.com, there are five conf file included in site avaible/mysite.com:
include common/wpfc-php74.conf;
include common/wpsubdir.conf;
include common/wpcommon-php74.conf;
include common/locations-wo.conf;
include /var/www/mysite.com/conf/nginx/*.conf;
so, Which conf file should I touch and add the above rewrite rules please?
Thanks so much