Forum Discussion
jaikumar_f5
Apr 10, 2018MVP
You can use the string map to achieve this,
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/URI1" } {
HTTP::uri [string map {"/URI1" "/URI1/URI2/URI3.html"} [HTTP::uri]]
}
if { [string tolower [HTTP::uri]] starts_with "/URI2" } {
HTTP::uri [string map {"/URI2" "/URI4/URI5/URI6.html"} [HTTP::uri]]
}
}