Forum Discussion
atoth
Aug 14, 2020Cirrus
Checking if a value exists in a data-group?
I've got an irule which doing 301 redirects. When a particular uri comes in, it checks the locale and matches it against a data-group with old locale in the uri being mapped to a new local. ...
- Aug 17, 2020
Hello atoth.
Make the most of the command 'else':
when HTTP_REQUEST { if { [class match [HTTP::uri] equals "location_dg" ] } { ## DO YOUR STUFF } else { ## DO YOUR STUFF IN CASE OF NOT MATCHING } }
Regards,
Dario.
atoth
Aug 18, 2020Cirrus
This worked. Thanks!
- Aug 18, 2020
Great! Don't forget to tag the answer as 'the best' ;-)
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