Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
Rank Math’s Sitemap URL is /sitemap_index.xml. In your case, you can set up a redirect on your site from /sitemap.xml to /sitemap_index.xml by inserting this code in the .htaccess file:
# START of Rank Math Sitemap Rewrite Rules
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
# END of Rank Math Sitemap Rewrite Rules
Google will still see the sitemap generated by Rank Math as your /sitemap.xml is already redirected to /sitemap_index.xml once the code is applied.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Thank you for the reply. I don’t have access to the clients server to but I will try and get access.
Hello,
Sure, Do let us know how it goes.
Meanwhile, if you have any other concerns or questions, do let us know.
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.