Sitemap couldnt fetch

#677689
  • Resolved Mark Sikaundi
    Rank Math free

    so iam unable to submit sitemap and tried to validate the sitemap i just received this error: Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)
    how can i solve it – i have tried many methods but nothing worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, I’m sorry to hear that you’re encountering issues with your sitemap. The “Incorrect HTTP header content-type” error usually occurs when the server expects an XML sitemap during validation but receives a response of a different content type, such as HTML.

    To resolve this issue, you can follow the steps outlined in our knowledgebase article on how to fix the “Incorrect HTTP Header Content-Type” error in sitemaps. You can find the article here.

    The article provides detailed instructions on how to flush permalinks and sitemap settings in Rank Math, which can help resolve the issue. Additionally, it includes steps to validate your sitemap and ensure it is correctly configured.

    If you’ve already tried these methods and they didn’t work, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern, and we appreciate your patience as we work to resolve this issue for you.

    Sources:
    How to Fix “Incorrect HTTP Header Content-Type” Error in Sitemaps » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math

    Hello,

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

    Can you please share your sitemap URL with us so that we can check the issue further for you?

    Meanwhile, you can try to follow the steps below and see if that works for you.

    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. If the above steps don’t seem to work, kindly apply the following filter to your site.

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

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Thank you.

    here is the sitemap https://lupleg.website/sitemap_index.xml

    the problem i have is when i submit on google getting the error cant fetch

    Alhan
    Rank Math free

    Hello,

    To assist you more effectively, it would be helpful if you could provide a screenshot or a recorded video screencast of the process you are going through, especially the error message you’re receiving.

    This visual representation will allow us to have a clearer understanding of the issue at hand.

    You can use tools like Imgur https://imgur.com/upload for screenshots or Loom https://www.loom.com/screen-recorder for video screencasts.

    Once you have captured the necessary information, please share the links with us.

    We really look forward to helping you.

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

The ticket ‘Sitemap couldnt fetch’ is closed to new replies.