my sitemap is not working on litespeed server

#356578
  • Resolved Sherryl Anastasya
    Rank Math free

    Hello, im having a problem with my sitemap index, I’ve submitted my sitemap_index.xml successfully on google search console, but after some times the discovered URL is gone. here’s my sitemap mediasaku.com/sitemap_index.xml
    i can also open it using mediasaku.com?sitemap=1 so i wonder if it cause a problem for that or not.
    here’s the pic for the problem https://ibb.co/72Fmsm2

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Can you please follow these steps?

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. After that, remove all your sitemaps from your GSC and resubmit only the primary sitemap (sitemap_index.xml).

    4. If the issue still persists, please add this filter in your active theme’s functions.php file:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Let us know how that goes. Looking forward to helping you.

    yup, ive done all those steps and my sitemap index in GSC still don’t show anything.

    Hello,

    I checked your sitemap and they are loaded just fine when accessing it on the browser. I also submitted your sitemap to an XML validator and it was also validated with no errors. Kindly check my video screencast here: https://i.rankmath.com/hEysVQ

    Can you please check with your hosting provider if you have any other caching software on your server (such as Cloudflare) that might be still cashing the sitemap page? If yes, kindly clear the cache and try checking the sitemap on GSC again.

    Looking forward to helping you on this one.

    I don’t have any other caching plugins.
    I tried this redirect method from this link https://rankmath.com/kb/fix-sitemap-issues/
    I copied the code and paste it in my htaccess
    it was working fine after I did that a week ago, but now the problem comes back, I wonder if that code is only for apache and Nginx or it can be used for my LiteSpeed server.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    Thank you for sharing the sensitive data.

    I have checked your sitemap, and it was configured correctly. All the rules in LiteSpeed Cache were also setup correctly. Also, I could see that the filter to exclude sitemaps from caching was present in your theme’s functions.php file.

    I also checked your sitemap as Googlebot and the sitemap returned 200 OK status without any issues.

    Sitemap as Googlebot

    In this case, could you please remove all the submitted sitemaps from Google Search Console, and only submit the main sitemap – /sitemp_index.xml? Google will fetch the other sitemaps from the main sitemap of your site. It will use those sitemaps to discover the URLs further.

    Please let us know how it goes.

    Looking forward to helping you.

    Thank you.

    Anas
    Rank Math business

    Hello,

    I checked the sitemap URLs with https://httpstatus.io/, the www variations of the sitemap are returning an error:
    error

    Please follow this guide and redirect to a final variation:
    https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-5-4-redirect-all-three-other-versions-to-your-preferred-variation

    Once done, clear your website cache and resubmit the sitemap in the Search Console.

    Hope that helps.

    Thank you.

    im sorry, i dont think i can do that, can you help me with that?

    Hello,

    Please contact your hosting provider as they are in the best position to fix the forwarding of each variation of your sitemap URL.

    You may show them this guide when you contact your hosting provider support: https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-5-4-redirect-all-three-other-versions-to-your-preferred-variation

    Let us know how it goes. Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘my sitemap is not working on litespeed server’ is closed to new replies.