Forum Discussion
IRule - combine 2 variables with an and && statment
Looks good and thanks again, Sorry for the late replay, been working on a new IBM POC application for our company.
Looks like I also need to add an additional statement to allow 404 responses from our internal servers. I've put together the following and seem to have a syntax error or I'm using the wrong command. Any advice?
Based on my searches I've put together the below string. I'll place that as the fist irule to fire (after the "set" variables) and it seems to fire in the right order, just on mobile devices it does not load anything so so its not happy. Thanks again for the assistance!
My issue seems to be this part of the statement:
{if [HTTP::status] == "404" }
The combined statements I'm trying to use is:
if { ( $redirect_to_mobile == "true") && {if [HTTP::status] == "404" } } {
pool $non_mobile_pool
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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