error in my website sitemap

#326938
  • Resolved Bole Lucknow
    Rank Math free

    i have this error in my website sitemap

    Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)

    What i DO

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    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/

    That should fix the issue.

    If the issue persists, please share the Sitemap URL in the sensitive data section so we can check.

    We look forward to helping you.

    Main Sitemap (https://mywebsite.com/sitemap_index.xml) error fixed but in pages And Story sitemap still having error. only posts sitemap is success

    Anas
    Rank Math business

    Hello,

    I checked the sitemap, it is returning a 404 error.

    Please make sure that you have followed step 2 in my previous reply and excluded the sitemaps from caching.

    I’ll also suggest to add this filter in the theme’s functions.php file:

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

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    Once done, clear your website cache and resubmit the sitemap_index.xml again.

    Hope that helps.

    Looking forward to helping you.

    Hello Anas
    It Takes some time but Your First Reply is Valuable. Sitemap problem is fixed. i did not use your second reply. is it also important or i left that.

    Thank You for Your Support

    Anas
    Rank Math business

    Hello,

    If you have already excluded the sitemaps from caching by following my first reply and the sitemap is working fine, then you do not need to follow the instructions in the second reply.

    Hope that helps.

    Thank you.

    Thank You

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘error in my website sitemap’ is closed to new replies.