Search code examples
seogoogle-searchgoogle-index

How to remove folder and Its child pages from Google Search Index


I am redesigning my site and It is located in sub folder of website directory. And Google have indexed our new site from sub folder which is affecting my search results of live site.

Is there any specific way, that I can remove sub folder from google search index and google search results ?

e.g. My Live site is www.xyz.com and I am redesigning on www.xyz.com/newsite

Is there anyway that I can remove /newsite from google search index and results ?


Solution

  • Refer http://www.robotstxt.org/robotstxt.html

    Add this robots.txt file

    User-agent: *
    Disallow: /newsite/
    

    or best suited, get access to Google Webmaster

    https://www.google.com/webmasters/tools/url-removal?hl=en&siteUrl=

    add your website url after =

    For example:

    https://www.google.com/webmasters/tools/url-removal?hl=en&siteUrl=http://www.techplayce.com/