Forum Discussion
Reddy1
Altostratus
Mar 04, 2019URI Redirects with Data-groups
I have a simple requirement ,
There are about 8 incoming URI's which has to be modified and send to the different pool. I have the Data-group created with the string (old uri) and value (new u...
Mar 04, 2019
Try this:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::path]] contains DATAGROUP] } {
set NEW_PATH [class match -value [string tolower [HTTP::path]] equals DATAGROUP]
HTTP::path $NEW_PATH
log local0. "The new HTTP Path is [HTTP::path]"
pool $Test_pool
return
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
