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 ...
adrian_171483
Cirrus
Jul 02, 2015when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/dashboard" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]" return } else { pool someother-http-farm } }
I also need a rule that can have sioe other conditions..
Can I use
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/dashboard" or "/something" or "/something"} { 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