What is right format to exclude sitemap from Litespeed cache plugin?

#90479
  • Resolved Saransh Srivastava
    Rank Math free

    I am getting 404 page error again and again when accessing sitemap_index.xml page. And also in Google search console, “Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead“. I flush permalink many time in WP setting. It OK after flushing permalink, but after sometime it move to 404 page automatically.

    I think its due to cache plugin, so how to exclude sitemap from Litespeed cache plugin.

    Please note – I am using litespeed cache plugin and it asking to use right format to exclude URI. So please help me to put sitemap in right format and what string will be use? Should I have to use (/) before and after sitemap?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Sajid Khan
    Rank Math business

    Hello,

    Please try this, Go to WordPress Dashboard > LiteSpeed Cache > Cache > Excludes > Do Not Cache URIs and add the following in the filed for URLs to never cache: sitemap

    Once done you should clear your cache then do the following:
    1. Head over to WordPress Dashboard > Settings > Permalinks

    Hit the save button once.

    2. Go to WordPress Dashboard > Rank Math > Sitemap Settings

    Hit the save button once.

    That should fix the issue.

    If it doesn’t, please do let us know so we can look at this further.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello respected team Rank Math,

    I am very frustrated…Please solve my issue, I tried many settings and methods provided by you so many times. Every things was going good, but suddenly today (10/21/2020, 8:30 pm Indian Standard Time), I saw sitemap error in Google search console again.

    I tried all these methods

    1.Excluded sitemap in Litespeed cache
    2.Cleared cache
    3.Flushed permalink
    4.Save sitemap settings in Rank Math
    5.Submitted sitemap again in GSC

    Please see images

    Sajid Khan
    Rank Math business

    Hello,

    Could you give us some examples? You can share the URL in the Sensitive Data section.

    Looking forward to helping you. Thank you.

    Ok I am sharing my site url in sensitive data. please take a look

    Sajid Khan
    Rank Math business

    Hello,

    I checked your sitemap, and its working fine, you can validate your sitemap here:
    https://www.xml-sitemaps.com/validate-xml-sitemap.html

    Also i have added a screenshot of your sitemap in the sensitive data.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello gentlemen. It seems that you are not understanding my words? The problem is that the sitemap automatically becomes 404 pages, and then normalizes by itself. Where is the problem?

    And due to this issue my site facing lot’s of problem, like indexing and so on.. This will be more problematic in future. If this happens again and again, it will create a serious problem in my blogging.

    No reply? No fix? For your knowledge, I am also using cloudflare CDN with full (strict) SSL along with Litespeed cache plugin…

    If I have to bypass caching for sitemap in cloudfalre then please let me know, what is correct syntax for sitemap url?

    Hello,

    If your sitemap is automatically being removed and showing a 404, that means there is an issue with your rewrite rules and the rules are automatically not flushing and resetting on their own.

    Can you please talk to your web host about this?

    Otherwise, please submit this URL to Google Search Console to avoid this issue with your rewrite rules:

    https://hixxxxood.com/?sitemap=1

    That should do the trick. Otherwise, we will need your FTP logins to look further into the issue.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘What is right format to exclude sitemap from Litespeed cache plugin?’ is closed to new replies.