-
I attempted to run the trouble shooting site health check and no plugin conflicts were found. My sitemap is being read by google search console as an html.
-
Hello,
Thanks 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 investigate the issue further for you.
Looking forward to helping you.
Thank you.
It is these two sitemaps:
/category-sitemap.xml
/post-sitemap.xmlHello,
Please share the complete URL with us, so that we can check as well.
Looking forward to helping you.
Thank you.
Hello,
While checking your sitemap I found there are currently two issues you have on your sitemap. Please note that the sitemap generates on the fly in Rank Math, when you enable that module. We rely on redirects enabled by your server software to accomplish that. As the Sitemap doesn’t work in your case, you may have to add some rewrite rules to them in order to function sitemaps properly.
The two issues that you have are:
#1- Your
/sitemap_index.xmlis redirecting to your homepage.To fix this, please try setting a redirect rule to redirect from
/?sitemap=1to/sitemap_index.xmlby following the guide below, or you may also ask your hosting provider to do that.
https://rankmath.com/kb/sitemap-404-error/#nginx-apache-server#2- Your
/?sitemap=1is having a parsing error and this is why it’s showing a blank page.If you visit the
/?sitemap=1URI on your site and view the source code of your sitemap, you can see that the XML sitemap itself is working, but the linked XSL file is not –/main-sitemap.xslredirecting to homepage. We can only access that with the direct URI that looks like this:/?xsl=main.So the issues are basically that
/?xsl=mainshould be rewritten to/main-sitemap.xsl(the rewrite pattern looks like this: ‘/([a-z]+)?-?sitemap\.xsl$/' => '?xsl=$1‘).These issues are most likely related to your server configuration. So, I suggest you to get in touch with your hosting provider regarding this issue.
Let us know how it goes. Looking forward to helping you.
Thank you.
Since it seems to be a redirect issue could it be because I turned on redirects in Rank Math but still have broken link checker running as well?
Hello,
No, the redirection module shouldn’t cause this issue anyhow. This sort of issue often happens when there’s an issue with your server-level redirects. Since, Rank Math relies on redirection on your server level, the issue can happen due to that.
However, it’s suggested to follow the steps above to see if that helps.
Let us know how it goes. Looking forward to helping you.
Thank you.
The link you provided to the steps is not found
Hello,
Kindly visit this URL to view the previous message:
https://support.rankmath.com/ticket/sitemap-is-being-read-as-an-html/#post-512510If you are not sure about this, I would recommend checking this one with your hosting provider.
If you need further assistance, please don’t hesitate to contact us.
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.
The ticket ‘Sitemap is being read as an HTML’ is closed to new replies.