Forum Discussion
- Pconlan_71037AltocumulusYes. We do something like this:
- mattboston_5893NimbostratusAll of our existing rules use if/elseif/else and do matches like the following (trimmed down). Is it possible to do what you said using the existing if/elseif/else statement.
- hooleylistCirrostratusThe if/elseif/else option will be less efficient than a switch statment--particularly since you're setting the Host header value to lower case again for each conditional check. But yes, that would function.
- mattboston_5893NimbostratusI'd rather not change our existing rules without having time to test them.
- hooleylistCirrostratusYou can strip /banners from the URI using string range:
- mattboston_5893NimbostratusSo how would I add the stripping into the following?
- Pconlan_71037AltocumulusI would think it needs to be in the scope of the elseif, like this: