Forum Discussion
Puneet_73909
Nimbostratus
Jun 26, 2009Wildcard redirection
Hi I am trying to write an irule but unable to do so. SEEK HELP
This one works:
when HTTP_REQUEST {
if {([string tolower [HTTP::path]] ends_with "/doc")} {
...
hoolio
Cirrostratus
Jun 29, 2009You can use starts_with for a logical wildcard at the end of /doc*:
([HTTP::uri] starts_with "/doc/")
Or you could use string match for glob style wildcard pattern matching:
(string match "/doc/*" [HTTP::uri])
Aaron
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
