Forum Discussion
dluzzi
Dec 17, 2018Nimbostratus
Hello,
 
You can probably use the string map within an irule. Not sure if the rough syntax I have below is correct. You can read more here: https://clouddocs.f5.com/api/irules/HTTP__path.html
 
"api-itg-1.testdomain.com" {
switch -glob [string tolower [HTTP::uri]] {
"/apitest/*" {
HTTP::path [string map {/abc-apitest-v1-itg /apitest} [HTTP::path]]
}
}
}