Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    If the subdomains had indexing enabled before you mapped the domain the content will continue to be shown in search results for a while.

    How to make sure in future installs the subdomains are not indexed by Google when this subdomain of the network is mapped to another domain?

    Turn off indexing on the site until you have mapped the domain.

    Thread Starter Iquity

    (@perininero)

    Well the strange thing is it should be not indexed because of the 301. However I found a solution to this:

    • First create a disallow and noindex robots.txt; save this in the main wp folder and name it something like robots-subdomains.txt:
    • User-agent: *
      Disallow: /

      User-agent: Googlebot
      Noindex: /

    • In htaccess rewrites of the subdomains to this extra robots.txt file:
    • RewriteCond %{HTTP_HOST} =subdomain1.example.com
      RewriteRule ^robots\.txt$ /robots-subdomains.txt [L]

    • Add all subdomains to your google webmaster tools (tools will find the noindex of the robots file and give warning)
    • In webmaster tools ask google to delete the url from the index
    • Within a few days all false indexed subdomains are gone from google search
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subdomains indexed by Google while mapped to domain’ is closed to new replies.