• Resolved xelamed

    (@xelamed)


    I keep having to manually request indexing every time I publish a post. My host uses LiteSpeed so I have the plugin installed on my WP site.

    What do I need to do to fix the sitemap not being crawled? I’m assuming it has to do with the sitemap caching? I know other SEO plugins have the same issue, and they recommend going to LiteSpeed Cache > Cache > Excludes and enter the following in the Do Not Cache URIs field: /(.)sitemap(.).xml

    Do I need to do the same? My site’s sitemap URL is something like: http://www.domain.com/sitemap.xml

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Could you please explain how you found out that search engines aren’t crawling your sitemap?

    Usually, search engines read your sitemap periodically (in the past, we pinged them on a post publish or update, but they closed that service), and when they find new or updated URLs, they add those to their crawling queue. Once it’s time to crawl those URLs, they read the pages and queue them for further processing (of meta tags, styles, and scripts). Once processed and deemed indexable, the URLs become available on the search engine.

    We know of no issues with crawling the sitemap other than temporary issues (bugs) at Google’s server.

    The regex syntax for TSF’s sitemap is ^/sitemap\.xml.*?, where ^ is the WordPress domain, such as example.com. .*? is a wildcard appended to the sitemap URL for multilingual support. The syntax for the stylesheet is ^/sitemap\.xsl.*?.

    Thread Starter xelamed

    (@xelamed)

    Hi Sybre,

    So, I need to go to LSC > Cache > Excludes > Do Not Cache URIs (and put):

    ^/sitemap\.xml.*?

    Is this correct? If not, can you tell me what exactly to put there?

    Thank you.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi again!

    According to their docs, the wildcard and escaping of dots are implicit, and only the beginning and ending of URIs need to be defined: https://docs.litespeedtech.com/lscache/lscwp/cache/#do-not-cache-uris.

    So, what you want to fill in would be: ^/sitemap.xml

    If the dot still needs escaping, then /sitemapAxml would also match for that exclusion, but that shouldn’t be a big concern. The authors of Litespeed Cache should know more about the specifics.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.