Hello,
We apologize for the issue you are facing with editing your robots.txt file. To set up your robots.txt as you described, you can use the following format:
User-agent: *
Allow: /cart
Allow: /orders
Allow: /checkout
Allow: /account
User-agent: Googlebot
Allow:
User-agent: Googlebot-Image
Allow:
User-agent: Mediapartners-Google
Allow:
User-agent: Adsbot-Google
Allow:
Sitemap: https://rankmath.com/kb/fix-common-robots-txt-issues/
Make sure to replace the existing content in your robots.txt file with this new configuration. If you are still unable to edit it, please check if there are any permissions issues or if a plugin is restricting access.
If you need further assistance, please reply to this ticket, and a human agent from the Rank Math Support team will take over and help you out.
Thank you for raising this concern!
Sources:
How to Edit Your Robots.txt With Rank Math SEO » Rank Math
What Are the Best Robots.txt File Rules for Multisite? » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Can you please confirm if you’re seeing any error on WP Dashboard > Rank Math > General Settings > Edit Robots.txt page? If so, please share the error or a screenshot by using this tool so that we can check the issue further for you.
Meanwhile, please follow this troubleshooting guide and see if that works for you: dhttps://rankmath.com/kb/cant-edit-robots-txt/
Let us know how it goes. Looking forward to helping you.
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.