Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Gold Sponsor 2015!
Robots.txt question excluding every folder expect one JVB_Mktg
How can I have a bot ignore every directory in my site except one?
Do I have to disalow all of them 1 by 1 ie.
Disallow: /folder4/ etc.. or is there an easier way.
I only need it to check www.mydomain.com/midi and exclude it from every other place.
Javi, Welcome to Webmaster World.
It is imperative that you keep in mind that robots.txt is a SUGGESTION to bots of compliance.
Many bad bots don't even read robots.txt.
With the above in mind. . .
denies all bots.
I seem to recall that Allow is not valid protocol in robots'txt.
So your alyernatives are either to deny all or list each "1 by 1"
Thanks wilderness :) weesnich
User-agent: * Disallow: /folder1 Disallow: /folder2 Disallow: /folder3 Disallow: /folder4 [empty line here]
It is better to disallow "/folder", as some SE assume that they are allowed to try "/folder" if you only disallow "/folder/", especially if you have some internal or incoming links pointing to "/folder".
Thanks weesnich, it looks a lot better now :)