Forum Discussion
irule not redirect with wildcard.
- May 27, 2021
Daniel,
you are correct, when I change to HTTP:uri, it works. Thanks a lot for your support.
Hi Hien,
your iRule is not redirecting because HTTP:path is only index.cfm. The ty=dir is the query parameter and is in the HTTP::query command. The query is defined as the part of the request past the ? character. See below image for explanation.
Maybe you can do the check in a different way. Use the switch statement for the HTTP::path and use a nested if / else statement for the HTTP::query. Check this out for examples: https://devcentral.f5.com/s/articles/irules-101-13-nested-conditionals
KR
Daniel
- Daniel_WolfMay 27, 2021MVP
Man, I am blind. You could also use HTTP::uri which contains both, the path and the query parameter...
Recent Discussions
Related Content
* 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