Forum Discussion
Leonardo_Accors
Nov 14, 2016Cirrus
Hi, you can try this:
when HTTP_REQUEST {
set level3 [getfield [HTTP::uri] "/" 4]
set newlevel "newlevel/$level3"
if {( [string tolower [HTTP::uri]] starts_with "/level1" ) and not [string tolower [HTTP::uri]] contains "$newlevel"} {
HTTP::respond 302 Location [string map -nocase "$level3 $newlevel" [HTTP::uri]]
}
}