noindex, nofollow for entire WordPress installation in a subdirectory?

So, I have WordPress running in the root directory of my webspace; I’ll install another WordPress instance in a subdirectory of the same server in a couple of days for testing purposes. So here’s the thing, I don’t want this WordPress instance, any of it’s pages, posts or anything from that subdirectory to show up in Google and the like. So I’m looking for a way to apply noindex, nofollow (and what else?) to this subdirectory and all files and subdirectories in it. What is the easiest way to achieve this (for example, can I use the .htaccess file, or is there a wordpress plugin that does this for me)?

I’t very important that the main WordPress installation and it’s SEO are not affected by this.

Related posts

Leave a Reply

1 comment

  1. From your Dashboard go to:

    • Settings -> Reading
    • In Reading, near the bottom of the screen there is an option called “Site Visibility”
    • Change that option to “Discourage search engines from indexing this site”
    • Save those changes

    enter image description here

    Refresh the site and take a look at the source, there is now a <meta name='robots' content='noindex,follow' /> on each page. Also in the robots.txt file there is not the following

    User-agent: *
    Disallow: /