abachman_72712
Aug 21, 2009Nimbostratus
Append to uri
I need to append to the uri that the user types. The client browser needs to see the addition for a certain java function to work properly. We are using an existing iRule for cookie persistence, and need to add to the existing iRule:
Here is the existing iRule:
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"]
}
}
when HTTP_REQUEST {
log local0. "Request: [HTTP::uri]"
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
Here is what I am trying to add into the iRule:
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/cc/Claim"} {
HTTP::redirect http://[HTTP::host]/cc/Claim/Claim.do
}
}
Any help would be appreciated?