Forum Discussion
Operation not supported. Multiple redirect/respond invocations not allowed
Hello Community, I had a multiple redirects question. When you have 1 or 2 IRules that have multiple if conditions to redirect URLs and if each redirect has a "return", shouldn't the "return" prevent the rest of the IRules/if conditions from being executed?
ex) WHEN_REQUEST {
if(x true) { redirect x return }
if(xy true) { redirect xy return }
}
Error: TCL error: /Common/IRules - Operation not supported. Multiple redirect/respond invocations not allowed (line 15) invoked from within "redirect xy"
Let me know how I can achieve just having the redirect return at the "redirect x".
Thanks!
The return function should exit the current event. When using multiple iRules you could use the ‘event disable all’ function. This will stop further processing of other iRules.
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