Forum Discussion
johnscr_45871
Nimbostratus
Dec 12, 2008Simple match of URL based on regular expression
Hi
I am haveing some trouble with this simple Irule and was hoping someone could help. All I have to do is check the incomming URL and see if it matches a reg ex. If it matches the reg ...
johnscr_45871
Nimbostratus
Dec 12, 2008So after some persistance I got this one to work. I hope its doing the correct thing, but initial testing looks OK.
when HTTP_REQUEST {
if {[HTTP::uri] matches_regex "(.*)?postcode=(.*)&email=(.*)"} {
log "Landing pages on Pool B"
pool uSwitchPoolB
} else {
}
}
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
