• Resolved Gantar

    (@zkylizer)


    I just found rankmath sitemap error like this https://ibb.co/ZzDXrfg, when i using litespeed plugin showing this error
    <head><script data-no-optimize="1">var litespeed_docref=sessionStorage.getItem("litespeed_docref");litespeed_docref&&(document.referrer=litespeed_docref,sessionStorage.removeItem("litespeed_docref"));</script>

    already add url below in Do Not Cache URIs.

    /(.*)sitemap(.*).xml
    /(.*)sitemap.xsl
    /sitemap_index.xsl
    /sitemap_index.xml

    Please fix it

    • This topic was modified 2 years, 11 months ago by Gantar.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gantar

    (@zkylizer)

    when i downgrade litespeed to version v4.4.5 rankmath sitemap back normal.

    • This reply was modified 2 years, 11 months ago by Gantar.
    Thread Starter Gantar

    (@zkylizer)

    and when using v4.4.6 ( latest ) disable guest mode solved this problem, but how to fix this without disable guest mode?

    already add this to wp-config.php

    if (strpos($_SERVER['REQUEST_URI'], "xml") !== false){
    define( 'LITESPEED_DISABLE_ALL', true );
    }

    still not fix this error

    • This reply was modified 2 years, 11 months ago by Gantar.
    Plugin Support qtwrk

    (@qtwrk)

    change first line to if (strpos($_SERVER['REQUEST_URI'], "sitemap") !== FALSE) {

    just tested and worked

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Litespeed break rankmath sitemap’ is closed to new replies.