Forum Moderators: open
I guess it would be an easy question if the default page were not also the interface to the search results. “/?”
Would I use:
User-agent: *
Disallow: /?
That's a nasty problem! I don't know if there any "rules" for robots pertaining to handling
strings passed to scripts. It wouldn't surprise me if different robots treated them
differently, either. Since the "?" is technically not part of a URL, they may not even
process it in the URL compare. So "/" and "/?xxxx" may be the same as far as interpreting
robots.txt is concerned...
I know you don't want to hear this, but is there any way you could "move" the query URL to
something like "/search?q=xxx" That would make handling this problem in robots.txt and/or
by using .htaccess, etc. a lot easier.
Good luck,
Jim