Indexed though blocked by robots.txt

  • 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)
  • 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.

    ​​​​​​​

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.