Forum Discussion
Leonardo_Accors
Nov 14, 2016Cirrus
Hi Annsar, too much "]" after getfield instruction. Try this:
when HTTP_REQUEST {
set level3 [getfield [HTTP::uri] "/" 4]
if { [string tolower [HTTP::uri]] starts_with "/level1" } {
HTTP::respond 302 Location [string map -nocase {/$level3 /newlevel/$level3} [HTTP::uri]]
}
}
regards Leonardo