• Resolved riga75

    (@riga75)


    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 it’s 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 2 years, 10 months ago by riga75.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    RewriteEngine On
    RewriteRule .* – [E=Cache-Control:no-cache].

    you have a . in the rule it will not work , and don’t 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

Viewing 1 replies (of 1 total)
  • The topic ‘Error 404 sitemap with Rank Math and LiteSpeed’ is closed to new replies.