Forum Moderators: goodroi

Message Too Old, No Replies

Robots.txt and Query Strings

Can they block non directory paths?

         

soquinn

8:09 pm on Oct 24, 2005 (gmt 0)

10+ Year Member



Anyone know if you can safely block paths like:

User-agent: *
Disallow: /script.php?a=10
Disallow: /script.php?a=11

So anyhting after "/script.php?a=10" does not get indexed, like:

/script.php?a=10&b=11

or can it only be directories?

Thanks

Dijkgraaf

3:12 am on Oct 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It can be the start of any URL that you like.
So yes, in your example /script.php?a=10&b=11 would be excluded as well.

soquinn

4:45 am on Oct 26, 2005 (gmt 0)

10+ Year Member



Thanks Dijkgraaf, I appreciate the tip.