Forum Discussion

Brad_146558's avatar
Brad_146558
Icon for Nimbostratus rankNimbostratus
Mar 26, 2015

iRule Question

Hi everyone, this is my first time using Data Group lists and I'm having some trouble with the below iRule. Does anyone have any suggestions on what I might be doing wrong?   Also a summary as to ...
  • Brad_Parker_139's avatar
    Mar 26, 2015

    This should do the trick. Just make sure your DG is a string list and your /URIs go in the string field.

    when HTTP_REQUEST {
        if { [class match [HTTP::uri] starts_with "/Common/"] } {
            pool some_pool
        }
        else {
            HTTP::redirect "https://somedomain.com/"
        }
    }