Forum Discussion
T_Rajneesh
Nimbostratus
Jun 01, 2019http header replace with host & redirect based on path
Hi, I have written i-rule for http header replace and re-direction based on path but it is not working as expect. Please review the config and suggest what changes needs to be done for the below i-r...
Hamish
Cirrocumulus
Jun 02, 2019I'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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects