Joe,
I don't see anything wrong with my particular configuration.
when HTTP_REQUEST
{
if {[HTTP::path] == "/SearchCombined.asp"}
{
set CategoryID1 [findstr [HTTP::query] "category=" 9 "&"]
log local0. "set command = >$CategoryID1<"
if {$CategoryID1 != ""}
{
set CategoryID2 [findclass $CategoryID1 $::CategoryIDs " "]
log local0. "set command = >$CategoryID2<"
if {$CategoryID2 != ""}
{
set qstring [string map [list $CategoryID1 $CategoryID2] $qstring]
log local0. "set command = >$qstring<"
}
}
HTTP::respond 301 Location "http://[HTTP::host]/common/search/SearchResult.asp?$qstring"
HTTP::respond 301 Location "http://[HTTP::host]/"
}
}