Adding nofollow to all links to wp-admin on a multisite
-
I’ve recently become the webmaster of a wordpress multisite with 95 sites. I found out that google had wp-admin indexed, which I know is not ideal. I added a .htaccess to the wp-admin directory with
Header set X-Robots-Tag "noindex, nofollow"
, but it is still indexed. I believe this is because the footer on every site has a link to wp-admin. I am aware that optimum security would involve no linking to wp-admin, but the population of users is not tech savvy enough to find the login page without that link.I would like to set all the links to be
nofollow
, which I think should resolve the issue(?), but I’m not sure how to do it without touching every site. What are some good options for this? Right now, I am thinking of making a plugin with a wp_footer hook that usespreg_replace
to addnofollow
dynamically. Is that the best option?
- The topic ‘Adding nofollow to all links to wp-admin on a multisite’ is closed to new replies.