“/battery/*” would match a path starting with /battery/, so you could use [HTTP::path] starts_with “/battery/” for the same functionality. If the web app is not case sensitive, you could set the path to lowercase before checking that it starts with /battery/ as jquinby suggested.
If you’re on 9.4.0 or higher, you could also use an HTTP class instead of an iRule to filter requests based on URI to a specific pool.
if { [string tolower [HTTP::uri]] contains “battery”} {
pool battery_pool
}
}
which worked.
9.4.7 is the code running on the BigIP
I like the idea of HTTPClass profile for this instance, however I had tried HTTPClass profile on a previous conversion. It was using a header list and didn’t work, dropped in iRule for the header and it worked. So…not so sure about the HTTPClass, but I won’t give up on it yet.
Thanks for all your input. Glad this site exists and you all are very responsive!!