Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
Can you please follow these steps?
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
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. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
That should fix the issue. Please let me know if that does not. We are here to assist.
Hello,
I tried flushing the Sitemap cache as showed in the video.
It didn’t worked.
Also There is no cache plugin which I am using. I am using Woodmart theme if that helps.
Thanks. Regards
Hello,
This is because the /main-sitemap.xsl
file is returning with a forced trailing slash. https://www.domain.com/main-sitemap.xsl/
Please make sure that the /main-sitemap.xsl
is not adding any trailing slash in it and the issue should be fixed.
Let us know how it goes. Looking forward to helping you.
Thank you.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/wp-json
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
</IfModule>
This is my code, is there any way to edit it to allow sitemp
Hello,
You can replace it with the following one:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/wp-json
RewriteCond %{REQUEST_URI} !(.xsl|.xml)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
</IfModule>
Let us know how it goes. Looking forward to helping you.
Thank you.
This solved the issue, Thanks
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.