Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.
1. Having your robots.txt file generated by a different SEO plugin, such as Yoast, is not a problem when you switch to Rank Math. Rank Math will still work perfectly and generate its own sitemap as expected.
Robots.txt and sitemap are independent of each other. The important thing is that your robots.txt file is properly configured, and it doesn’t conflict with Rank Math settings or block any essential content.
Since you mentioned that the robots.txt generated by Yoast looks good and there’s no need to change it, you can continue using it.
Rank Math generates the robots.txt file dynamically without using a static file which offers the advantage of being highly customisable and the ability to edit its details from Rank Math’s settings.
2. If you decide you want to create a new robots.txt with Rank Math instead of using the Yoast-generated one. You will have to locate the static robots.txt file located in the root directory of your site and delete it. Some hosting providers may be able to help you do this.
To do it yourself you have to access your root directory using either FTP or Filemanager in CPanel. You can follow the steps in this article to access your root directory using Filemanager in Cpanel: https://www.greengeeks.com/support/article/how-to-delete-a-file-using-the-cpanel-file-manager/
You can use the Search box in the File Manager to search for robots.txt
and then delete it.
We hope this helps. Please let us know if you have further questions or concerns.
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.