Error 404 sitemap with Rank Math and LiteSpeed

Wordpress LScache Plugin: Error 404 sitemap with Rank Math and LiteSpeed

I have problems with the sitemap because it gives me 404 if I then go into administration and Rank Math in the sitemap section and save it works again. This happens every time I create new content. Rank Math people tell me its a cache propb,ea and that I should avoid caching the sitemap. In the configuration of Litespeed I put in the url to exclude this: /(. )sitemap(. ).xml /(. )sitemap.xsl and in the .htaccess file this RewriteEngine On RewriteRule . - [E=Cache-Control:no-cache]. but I keep having problems Any advice? Thanks a lot stefano This topic was modified 10 months, 1 week ago by riga75. The page I need help with: RewriteEngine On RewriteRule . ? [E=Cache-Control:no-cache]. you have a . in the rule it will not work , and dont use this , it will force everything to no cache just add sitemap into do not cache URI , then you can verify the result by http response header