elvisc_26948
Dec 21, 2009Nimbostratus
Replace URI subset
I am simply trying to look for ch1 and replace that with ch2 in URI... any idea?
URI example:
Convert
/abc/cde/ch1/xxx/yyy/file.txt
To
/abc/cde/ch2/xxx/yyy/file.txt
when HTTP_REQUEST {
if { [HTTP::method] contains "GET" } {
log local0. "========>> HTTP URI: [HTTP::uri]"
STREAM::disable
STREAM::expression "@ch1@ch2@"
STREAM::enable
}
}