Forum Discussion
pvrobinsontx2_2
Nov 12, 2015Nimbostratus
iRule redirect based on uri or user-agent match logic.
Hello, looking for some direction here. I am trying create a rule which will match a specific set of uri and redirect if true to a prefered site and quit processing the irule.
If the uri doesn't ma...
BinaryCanary_19
Nov 12, 2015Historic F5 Account
To the naked eye, i don't see anything wrong with your logic.
You might want to add logging statements to track the values you're matching for, and log every block execution reaches to make sure there is not something unexpected happening.
- pvrobinsontx2_2Nov 12, 2015NimbostratusThanks... That was my thinking that the logic was right. I've placed log local2. statements , the values are there but when it comes to the mobile section there is simply no execution as best I can tell. It's almost like there is a bug somewhere in running multiple switch statements in the same iRule. If the 1st uri match doesn't catch, I get an instant connection reset.
- BinaryCanary_19Nov 12, 2015Historic F5 AccountStanislas's example above does not use multiple switch statements. give that a go.
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