Forum Discussion
Kevin_Manavadar
Nimbostratus
Jul 14, 2015Need to use datagroup in content of site
Hi , I am using below Irule to check URI and display content. Now i want to use Datagroup for that as there are many URLs. I have below sample code. if { [HTTP::uri] starts_with "/mypage-abc...
Kevin_Stewart
Employee
Jul 15, 2015Just one more question. Can i use datagroup in URI in IF condition?
Datagroups are accessed with class commands, so is this what you're looking for?
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] equals uri_dg] } {
do something
}
}
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