-
Hi, I’m getting a blank screen when trying to access sitemap_index.xml
I’m on the NGNIX server and followed all the instructions which were mentioned to configure NGNIX but still no luck. Any suggestions on what could be the issue?
-
Hello,
Thank you for contacting Rank Math today, and we apologize for any inconvenience this may have caused.
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/xXXhDt
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server.
That should fix the issue. Please let us know if that does not. We are here to assist.I hope this information is helpful, and please do not hesitate to contact us if you require any additional support.
Thank you.
Hi Tammy,
unfortunately, I don’t have these options. Here is my screenshot -> https://prnt.sc/1tjykq2I’m using Cloudflare so I will exclude these plugin and will try again.
Meanwhile, do you have any other suggestions about what might be the issue?Hello,
It seems like you are using the Easy Mode of Rank Math. Some options are only available in the Advanced Mode. Please navigate to WP Dashboard > Rank Math > Dashboard and switch to the Advanced Mode. You will be able to see the options after that:
Let us know how that goes. Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
We checked your site and it seems that the sitemaps are working correctly, it’s just some of the required redirections that are not working.
If you visit the
/sitemap-index.xmlURI on your site (or any of the sitemaps under it, such as/post-sitemap.xml), and view the source code, you can see that the XML sitemap itself is working, but the linked XSL file is not –/main-sitemap.xslreturns a 404. 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 probably related to your server configuration. Please get in touch with your hosting provider about these.
I’d like to add that the only purpose of the XSL file is to make the sitemap “human-readable” so in terms of SEO it doesn’t make a difference. Google will still see the sitemap correctly, even without the XSL.
In other words, these issues will not hurt your SEO.
Don’t hesitate to get in touch if you have any other questions.
Hi Miguel,
Thank you very much for your support.Unfortunately, I still can’t access it 🙁
I’ve add these rules to the / directory, here is the full config of rewrite rules:
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; rewrite ^/([a-z]+)?-?sitemap\.xsl$/ /?xsl=$1; rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;Hello,
Could you please check if Rank Math’s sitemap is working if it’s the only plugin activated and a default theme using the Health Check plugin? Please also check if there’s a static file in your website’s root directory as Rank Math’s sitemaps are generated dynamically.
Here’s a link for more information:
https://rankmath.com/kb/fix-sitemap-issues/#blank-pageI hope that helps.
Thank you.
Actually, @Miguel was right, everything is working I mean Google can fetch the links but I can’t see them via URL.
Anyway, I think it’s not a big issue.Thank you everyone for your great support. I appreciate it
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.
You must be logged in to reply to this ticket.