Here is an example.
User-agent: *
Disallow: /and the path or file you do not want indexed
Lets say you have a test php file you are working on and do not want it indexed. Then this is what the robos.txt file would look like.
User-agent: *
Disallow: /test.php
To add more then one file to the list,
User-agent: *
Disallow: /test1.php
Disallow: /test2.php
Disallow: /test3.php
Disallow: /test4.php
Disallow: /test5.php
To add a directory to the file
User-agent: *
Disallow: /test1.php
Disallow: /test-directory/
and that will stop all search engines from indexing the test-directory.
Last edited by ~kev~ : 08-27-2009 at 09:14 AM.
|