Forum Discussion
chic_cat_324145
Nov 21, 2018Altocumulus
iRule redirects & some parsing
Hello, Is is possible with iRules to do this:
1) Let's say user hits next URL with QUERY: /testpage/asd/user/123 or /testpage2/asd/user/333 I need to redirect this to: /testpage/asd?user=123 and /testpage2/asd?user=333 respectfully.
2) If Query contains for example ?test* or ?test2* - reject
Thanks!
- HamishCirrocumulus
Yes, it is possible.
- Stanislas_Piro2Cumulonimbus
@chic_cat, you can use TCL Scan Command to parse the uri, like
scan [HTTP::uri] {/testpage/asd/user/%d} userid
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