I want that Google should not index my WordPress admin

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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: *


    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.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.