Forum Discussion

chic_cat_324145's avatar
chic_cat_324145
Icon for Altocumulus rankAltocumulus
Nov 21, 2018

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!