PDA

View Full Version : .htaccess help.


yli
08-11-2009, 09:15 PM
hi.
i have various folders with the same structure (same script installed in various folder)
so i want to deny access of robots
In this moment i have this lines

User-agent: *
Disallow: /minas-gerais/p,*,watch.htm
Disallow: /minas-gerais/p,*,print.htm
Disallow: /minas-gerais/p,*,email-to-friend.htm

Disallow: /rio-de-janeiro/p,*,watch.htm
Disallow: /rio-de-janeiro/p,*,print.htm
Disallow: /rio-de-janeiro/p,*,email-to-friend.htm

Disallow: /sao-paulo/p,*,watch.htm
Disallow: /sao-paulo/p,*,print.htm
Disallow: /sao-paulo/p,*,email-to-friend.htm


i want to know if i next lines also are valid...
Disallow: /*/p,*,watch.htm
Disallow: /*/p,*,print.htm
Disallow: /*/p,*,email-to-friend.htm

tomws
08-11-2009, 09:52 PM
This is robots.txt, not .htaccess. Which do you need help with?

yli
08-12-2009, 12:44 AM
sorry you have right...
i want to know if i can use the second code in change of first.

tomws
08-12-2009, 12:48 AM
I don't think it's valid, but not sure. Google provides a way to test it through its Webmaster Tools section. Here's the link to the Help page:
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35237