Site Map Error, help

#992241
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    We apologize for the issue you are facing with your sitemap. The error ‘Incorrect HTTP header content-type’ typically occurs when the server is returning a different content type than expected for your sitemap. Here are some steps you can take to resolve this issue:

    1. Flush Permalinks

    • Navigate to WordPress Dashboard → Settings → Permalinks.
    • Click the Save Changes button without making any changes. This will flush your permalinks.

    Flush Permalinks Settings

    2. Flush Sitemap Settings

    • Go to Rank Math SEO → Sitemap Settings in your WordPress admin area.
    • Change the value in the Links Per Sitemap (e.g., if it is 200, change it to 201) and click Save Changes.

    Change Links Per Sitemap

    3. Exclude Sitemap from Caching

    4. Check Restrictions from Web Host

    • If you can access the sitemap directly but encounter issues with external validators, check if your web host or a security plugin is blocking access to the sitemap. You may need to adjust settings or contact your web host for assistance.

    5. Add Filter to Theme’s rank-math.php File

    • If the above solutions do not work, you can add a filter to your theme’s rank-math.php file:
      add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    • Make sure to back up your site before making changes to PHP files.

    Add filter

    After trying these steps, please check your sitemap again using the validator. If you continue to experience issues, please reply to this ticket with your site URL so we can assist you further.

    Sources:
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you for your patience.

    You have checked your website in that tool instead of your sitemap.

    Here’s the result for your /page-sitemap.xml

    page

    The last update column is not yet getting updated from your Google Search Console (unlike your post-sitemap). Please give Google some time to recrawl your page sitemap and the date column will date will be updated as well.

    Looking forward to helping you.

    홍진수
    Rank Math free

    Is everything okay? I’ll wait if there’s no problem.

    Hello,

    Yes, your page sitemap is working fine.

    Please give Google some time to recrawl your pages and update the status in your GSC.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.