gsc non legge sitemap

#955582
Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with Google Search Console not reading your sitemap and the error regarding the incorrect HTTP header content-type. This error typically occurs when the server is returning a response type that is not expected for an XML sitemap.

    Here are some steps you can take to resolve this issue:

    1. Flush Permalinks

    Navigate to WordPress Dashboard → Settings → Permalinks. You don’t need to make any changes; just click the Save Changes button to flush the 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

    If you have caching plugins, ensure that your sitemap is excluded from being cached. You can follow this tutorial on excluding sitemaps from caching.

    4. Check Restrictions from Web Host

    If the sitemap is accessible from your browser but not from external tools, check if your web host or a security plugin is blocking access to crawlers. You may need to reach out to 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 update your changes and clear your website cache afterward.

    Once you have made these changes, test your sitemap again using an XML Sitemap validator or submit it again in Google Search Console.

    If you continue to experience issues, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Sources:
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.