Forum Discussion
Hamish
Jun 02, 2019Cirrocumulus
I'd put brackets around compound comparisons myself. Removes ambiguity when you're reading it. e.g.
elseif { ($hostname equals "a.services.commerce.example.com") && ($uri == "/search/*") }{
Also (And this is probably you're actual issue) the operator == is EQUALS. So it'll only match if you actually request '/search/*'. What you want is a glob comparison. You want to use the operator 'matches_glob' instead.