Forums

Stopping Google from indexing / listing the WP Admin pages (2 posts)

  1. worldsnapper
    Member
    Posted 1 year ago #

    Hi all,

    Does anyone know where I need to add the 'noindex' tag to my WordPress code editor to prevent Google indexing the wp-admin/admin-ajax.php page?

    Thanks

    Andrew

  2. James
    Happiness Engineer
    Posted 1 year ago #

    Modifying core files is strongly discouraged. Instead, create a robots.txt file in your web root directory with the following content (if your blog is in another directory, append it before /wp-admin/ as necessary):

    User-agent: *
    Disallow: /wp-admin/

Topic Closed

This topic has been closed to new replies.

About this Topic