-
Hey guys,
I have a live site and a staging site.
When I transfer everything from the staging site to the live site, the sitemap will not add the new pages. At WP-Rocket, I added already those URLs for none caching:/(.*)sitemap(.*).xml
/(.*)sitemap.xslThe Server uses Nginx… today I contacted the support because I read in your documentation, that those rewrite rule were important:
# 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 SitemapsBut they told me, that not I and they were able with my actual contract to add those changes.
The only way I can help me currently is the following. When I transfer everything from staging to live site, in WP I have to change the permalinks. When I then change the permalinks to that structure I want, the sitemap is updated.
Is this a possible solution for my issue, I need to handle it? I am not an expert, but is that not a critical way?
Thank you
Regards,
Markus
You must be logged in to reply to this ticket.