Block Google on all pages except homepage via robots.txt .... User-agent: googlebot Disallow: /* Will above mentioned code work?
I believe this might work: User-Agent: * Allow: /$ Disallow: / Code (markup): Source: http://webmasters.stackexchange.com...-disallow-all-pages-except-for-the-index-page
Yes, I do agree with Helge, $ designates the end of the URL so when you follow below code then you may block your entire website for Google bot except your home page. User-agent: googlebot Allow: /$ Disallow: /* Code (markup): If you have configured your website in Google webmaster then follow this step to test your robots.txt file live Sign in your Google Webmaster account Click on Crawl from the left side Select Blocked URLs Here you can check your robots.txt file live I have tasted above code from Google webmaster tool and it's work