Forum Discussion
May 07, 2015
BIG-IP : irule class match with wildcards
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
Can [class match] be used to match its arg against a list of strings containing wildcards ?
[class match [string tolower [HTTP::...
Samir_Jha_52506
May 07, 2015Noctilucent
i do not think you need asterisk (*) in data group since you are using class match. Can you please try this.
whitelist
data-group
"/default.html"
"/desert-dwellers/camel.html"
"/amphibians/platypus.html"
"/kids-favorites-1.html"
"/kids-favorites-2.html"
iRule
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with whitelist] } {
HTTP::redirect "http://www.xyz.com"
}
}
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