Forum Discussion

Gill_32697's avatar
Gill_32697
Icon for Nimbostratus rankNimbostratus
Oct 23, 2012

Need redirect irule help please !

I need a redirest irule, I can not use http class.   The developer only want the irule to act on the specifc uri path and send to pool1, any other uri path or no uri path at all goes to pool2.   ...
  • Pconlan_71037's avatar
    Oct 23, 2012

    Correct, add another line after the first one. THe new line would look like

     

     

    "/newuri/" -

     

     

    and yes, it should match only the uri's as specified. Actually, it will be case-insenstive, so it would match the uri list no matter what combination of upper and lowercase characters. If you do not want that and only want it to match on lower case, then change the switch statement to:

     

     

    switch -glob [HTTP::path]