Forum Discussion
adrian_171483
Cirrus
Jun 25, 2015irule syntax check
Got a check on an Irule.. the rule needs to forward http requests not containing the URI /dashboard onto the default pool someother-http-farm.
If the http request does contain /dashboard in ...
Stanislas_Piro2
Cumulonimbus
Jun 25, 2015you want this:
- don't use wildcard in contains, starts_with, ends_with equals conditions
- wrong syntax in else --> removed default
-
I removed one closing bracket
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/dashboard" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]" return } else { pool someother-http-farm } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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