Your Sitemap appears to be an HTML page

#841718
  • Resolved Onyema Courage
    Rank Math free

    I’m getting this error message “Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.” when I visit the sitemap page generated by Rankmath.

    Please how can I resolve this.

Viewing 1 replies (of 1 total)
  • Hello,

    I’m sorry to hear that you are facing an issue with your Rank Math sitemap showing an error message stating, "Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead." This error typically occurs when Google expects an XML sitemap but receives an HTML page instead.

    To resolve this issue, please follow these steps:

    1. Check the Sitemap URL: Make sure you submitted the correct XML sitemap URL to Google. The correct URL format should be something like: `https://rankmath.com/kb/wordpress-hooks-actions-filters/#rank-math-php-file.

    2. Plugin Conflict: If you have W3 Total Cache installed along with Rank Math, create a new user agent group and add the ‘googlebot‘ user agent to it. This can help resolve the issue.

    3. Disable Sitemap Caching: If the above steps don’t work, you can disable sitemap caching by adding the following filter to your theme’s rank-math.php file:

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

    If you continue to experience issues after trying these steps, please feel free to reply to this ticket for further assistance. Thank you for reaching out, and we appreciate your patience.

    Best regards.

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How to Create HTML Sitemap Using Rank Math » Rank Math
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » 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.

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

The ticket ‘Your Sitemap appears to be an HTML page’ is closed to new replies.