Hello,
I’m sorry to hear that you are facing an issue with your sitemap showing as an HTML page. This error typically occurs when the server expects an XML sitemap but receives an HTML page instead. To fix this issue, you can follow these steps:
-
Flush Permalinks:
- Navigate to your WordPress Dashboard -> Settings -> Permalinks.
- Click the “Save Changes” button without making any changes to flush the permalinks.
-
Flush Sitemap Settings:
- Go to Rank Math SEO -> Sitemap Settings in your WordPress admin area.
- Adjust the value in the “Links Per Sitemap” field (e.g., change from 200 to 201).
- If the option is unavailable, ensure you are in Advanced Mode in Rank Math.
- Click the “Save Changes” button at the bottom of the page.
If the issue persists after following these steps, please let us know, and we will assist you further.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
How to Fix “Incorrect HTTP Header Content-Type” Error in Sitemaps » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
If the recommendations above don’t work for you, can you please share the affected website URL with us so we can further check it on our end?
Looking forward to helping you.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do 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.