atoth
Aug 14, 2020Cirrus
Solved
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.