Forum Discussion
Stanislas_Piro2
Sep 15, 2015Cumulonimbus
The switch is recommended if you have more than one condition based on the same variable.
If you only have one condition as in your irule, you can use "if" instead of "switch"
I advise you to use
if { [string tolower [HTTP::uri]] starts_with "/path1" }
to ignore the case.