Forum Discussion
stucky101_88485
Nimbostratus
Aug 13, 2012class iteration for key/value
Gurus
I know you don't usually need to manually iterate over a class as it does this automatically.
Example : I have a class called "in_maintenance" containing a list of URIs. Any match...
hoolio
Cirrostratus
Aug 13, 2012Hi,
Can you try this example which retrieves the value for the matching name in the data group?
when HTTP_REQUEST {
set new_uri [class match -value [HTTP::uri] starts_with in_maintenance]
if { $new_uri ne "" } {
HTTP::redirect "http://some.maintpage.com$new_uri"
}
}
Aaron
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
