Forum Discussion
scott_j_111129
Jun 23, 2006Nimbostratus
Hi Steve,
If you are simply trying to substitute /SEH with /SEH/SEHPROXY, you might consider this
If the URI starts with the the string /SEH
if {[HTTP::uri] starts_with "/SEH"}{
strip off the first 5 characters, then replace with /SEH/SEHPROXY/
set workingUri [substr [HTTP::uri] 5]
HTTP::uri "/SEH/SEHPROXY/$workingUri"
pool INSIDEHOST1
}
Also, please note that I used "starts_with" instead of "contains" to avoid unintented side-effects.