Hello,
Thank you for contacting Rank Math for help with editing your robots.txt file.
When I checked your website, the robots.txt file was being generated. If you are still facing issues with your robots.txt not being generated as expected, please do the following:
Check your website FTP or file manager for a robots.txt file and delete it. Rank Math uses a virtual robot.txt which cannot be generated if you have a physical file.
Next, please add the following rewrite rules to your .htaccess file:
—
# START Apache Rewrites for Rank Math Robots.txt File
RewriteRule ^/robots.txt$ /?robots=1 [L]
RewriteRule /([/]+?)-robots([0-9]+)?.txt$ /?robots=$1&robots_n=$2 [L]
# END Apache Rewrites for Rank Math Robots.txt File
—
If you don’t know how to edit your .htaccess file, check this guide: https://rankmath.com/kb/edit-htaccess/
We hope this helps. If you have any other questions, please 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.