I am using this code on my site.I have added this under root.
trying to exclude ppc folder from search engines.is this correct?
2-also i have a subdomain in which i do not want search engines crawling.I have added this 2nd robots.txt under subdomain.maindomain.com
will these 2 robots.txt work?
To exclude the folder ppc from all bots, all you need is
I read somewhere (and I can't now remember where) that Googlebot likes to be called by name, and therefore one should add
I always keep to that practice and have run into no problems, but it's probably redundant.
The robots.txt protocol does not include "Allow", only "Disallow". By default, the whole site will be crawled unless folders/files are specifically excluded.
This page may help.
This topic is now archived. It is frozen and cannot be changed in any way.