Indexed though blocked by robots.txt

#65247
  • Resolved N
    Rank Math free

    Hi,

    In my edit robots.txt – it reads,
    Disallow : /wp-admin/
    Allow : /wp-admin/admin-ajax.php

    I am getting the error for my wp-admin page – indexed but blocked by robots.txt, how to fix this ?

    Regards,

    Nikita

Viewing 1 replies (of 1 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You don’t want your wp-admin being indexed nor accessed by robots, only the admin-ajax.php file. That is why you see those rules in your robots.txt.

    So you should make sure to deindex in your Search Console every URL in wp-admin except admin-ajax.php (or even that URL, since you don’t want it indexed, only accessible to robots).

    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.

Viewing 1 replies (of 1 total)

The ticket ‘Indexed though blocked by robots.txt’ is closed to new replies.