Aaron or anyone else who can answer this:
I tried your solution above with another rule that I am re-engineering because it was absolutely horrendous ( a bunch of if/elsif, totalling 355 lines). The F5 is running 9.3.1 and I'm having a problem when I specify the classes/data-groups. First, I can't specify them in the iRule. I'm not sure if that's because the LB is 9.3.1 and not 10 or if I'm just getting my syntax wrong or doing it in the wrong place. The second problem I am having is when I attempt to input the uri/redirect pairs through the command line (about 50 pairs, so it makes sense to input them via command line). I use the b class command and input them like this:
b class someclass { \
"/uri http://redirect site"
"/someother/longer/uri http://some.other.redirect.site" \
}
When I do a b class list, I get:
b class someclass {
"/uri"
"/someother/longer/uri"
"http://redirectsite'
"http://some.other.redirect.site'
}
Am I doing something wrong with my syntax here? Your example shows that I should put quotes around them and I did. I'm thinking I might want to try doing a b load and starting over. If you see something wrong with my syntax here, please let me know.
Thanks,
Lucky