http header content type error

#327521
  • Resolved Ravi Suman
    Rank Math free

    Dear Rank Math Team
    http header content type i am facing this problem i have read your article also i have done what you have told in it but my problem is not solved please help me in this thank you

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

    Hello,

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

    Please make sure that the Sitemap files are excluded in your caching plugin:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    If you have already excluded and the issue persists, please 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 the website cache and check the sitemap.

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

    We look forward to helping you.

    Ravi Suman
    Rank Math free

    Thank you sir for answering this i tried what you have given solution but my problem is not solved yet please let me know if there is any other way

    Hello,

    Can you please share the affected URL with us so we can further check it on our end?

    Looking forward to helping you with this one.

    Ravi Suman
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    I can check that your sitemap and sub-sitemaps are working fine. Please check the screenshot that I have shared in the sensitive data section. Clear the cache of your site & browser and check again.

    Let us know if you need any other assistance.

    Thanks.

    Ravi Suman
    Rank Math free

    Sir sitemap page was visible earlier also but when i am checking sitemap.xml validator then http header content type error is showing there

    Hello,

    I went ahead and checked a different variation of your sitemap and I was able to see the issue.

    I also check your sitemap in an HTTP status checker and I found certificate errors. Please see my screenshot in the Sensitive Data section.

    Please contact your hosting provider and ask them to fix the error issue as this seems to be related to your certificate.

    In addition to that, please make sure that all 4 variations of your sitemap are redirecting to your preferred variation which is https://domain.xyz/sitemap_index.xml

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

    Ravi Suman
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    This seems like an issue with the way the pages are loaded on your website because each time we try to load the sitemap it returns an HTML page saying that we need to enable JavaScript.

    There also seems to exist an issue with the SSL certificate on your website, because the page loads a JavaScript file with the following title: AES - Advanced Encryption Standard

    So we would recommend getting in touch with your hosting provider or systems administrator to get clarification on this situation.

    Don’t hesitate to get in touch if you have any other questions.

    thank you all rank math team aapki wajah se problem ko samj paya aapki waj se meri problem ka solution ho gaya
    thank you so much πŸ˜˜πŸ˜˜πŸ˜˜β€οΈβ€οΈβ€οΈβ€οΈπŸ’“πŸ’“πŸ’“

    Hello,

    We are super happy that this resolved your issue.

    If you 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.

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

You must be logged in to reply to this ticket.