Hello again,
I will be grateful if you could help me with this issue.
Kind regards,
Paul
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We’ve checked your sitemaps and found some rewrite issues there. 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 Sitemaps don’t work in your case, you may have to add some rewrite rules to them in order to function sitemaps properly.
While checking your sitemaps we found there are currently two issues you have on your sitemap.
1. /?sitemap=1
is not being redirected to the /sitemap_index.xml
and which is why it’s throwing a 404 error.
To fix this, please try setting a redirect rule to redirect from /?sitemap=1
to /sitemap_index.xml
by 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=1
is having a parsing error and this is why it’s showing a blank page.
If you visit the /?sitemap=1
URI on your site and view the source code of your sitemap, you will be able to see that the XML sitemap itself is working, but the linked XSL file is not – /main-sitemap.xsl
returns a 404. We can only access that with the direct URI that looks like this: /?xsl=main
.
So the issues are basically that /?xsl=main
should 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, we 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.
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.