RewriteCond %{HTTP_USER_AGENT} ^.*[Googlebot|Yahoo!\ Slurp].*$
RewriteCond %{QUERY_STRING} ^(.*)([\?|&]pathKey=\d*)(.*)$
RewriteRule (.*) $1?%1%3 [R,L]

I'm using Apache 2.2.6 running on Fedora Linux 6 with kernel 2.6.20. My intent 
is to rewrite any request from Google or Yahoo so that if the URL contains 
pathKey=whatever it'll just drop that part. That portion is being dropped 
correctly but it's happening regardless to the user agent. Anyone know what I'm 
doing wrong? Thanks.

--
Michael McGlothlin
Southwest Plumbing Supply


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to