seo - Allow SE indexing on index.html only -


* What will be the shortest way to block and allow only the major search engines to index the site's index page Will you?

  User-agent: * Disclaimer: / User-agent: Googlebot Disclaimer: / Allow: index.html User-agent: Reject slurar: / allow: index.html User-agent : Deny MSN: / Allow: index.html  

Will this work?

Yes, this is not necessarily the right path to do so.

All bots do not support allow instructions. And some bots are confused about interpreting robots.txt when both are applied in a user-agent: * section and a user-agent: specific-bot section it happens .

It will be sure that this will work, you want to do something like this:

 User-agent: Googlebot Disclaimer: / file1 Disclaimer: / file2 Disallow: / file3 # etc. Until you block every path except the index.html user-agent: Reject slurp: / file1 Reject: / file2 Disallow: / file3 # etc. As long as you index.html user-agent, every path Block: reject msn: / file1 reject: / file2 rejected Do: Do ​​not block every path except the index.html user-agent: * Decline: / 

If you do not want to do all that work, then do so: / file3 # The best thing to do for you is to be interested in every engine and to see if you have accepted the proposed robots.txt file. If they do not, then try the version now.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -