As Matt suggested, if you want to redirect the client, you should do it before anything else in the HTTP_REQUEST event:
when HTTP_REQUEST {
log local0. "Request: [HTTP::uri]"
if {[HTTP::uri] starts_with "/cc/Claim"}{
HTTP::redirect "http://[HTTP::host]/cc/Claim/Claim.do"
} elseif { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"]
}
}
Aaron