Hello,
Thank you so much for getting in touch.
This can happen when you use a content delivery network (CDN) like Cloudflare. Rank Math does not create a physical robots.txt file on your site. Instead, the file is created and displayed when a user visits your robots.txt URL. So you can safely ignore this error if your robots.txt file is available at https://yourdomain.com/robots.txt.
Alternatively, you can also add this rule in your Robots.txt:
Disallow: /cdn-cgi/
Here is a guide that can help: https://rankmath.com/kb/fix-common-robots-txt-issues/#robots-txt-is-not-valid-in-pagespeed-insights
You can check this guide to learn how to edit your robots.txt file using Rank Math: https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/
Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.
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.