Forum Discussion
Brad_Parker
Apr 24, 2015Cirrus
I haven't tested this yet, but you could try somthing like this.
when HTTP_REQUEST {
if {[string tolower [URI::path [HTTP::path] 2 2]] matches_regex "[a-z]{1,}"}{
HTTP::path "/[URI::path [HTTP::path] 3]"
if {not ([HTTP::query] equals "")}{
HTTP::query "[HTTP::query]&id=[URI::path [HTTP::path] 2 2]"
}
else {
HTTP::query "id=[URI::path [HTTP::path] 2 2]"
}
}
}