Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
You should have in your robots.txt the following code:
User-Agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: http://mywebsite.com/sitemap_index.xml
You can check it by going to the WordPress Dashboard > Rank Math > General > robots.txt
Looking forward to helping you. Thank you.
I have installed rank math then what should I do with this code?
Or it automatically disallow the Google to crawl the admin panel?
I went in robot.txt file and it’s only showing
User-Agent: *
Disallow
Hello,
Please replace it then with the one I shared in my previous message and let us know if it helps you.
Looking forward to help 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.