Forum Discussion

trx_94323's avatar
trx_94323
Icon for Nimbostratus rankNimbostratus
Apr 14, 2018

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!

 

1 Reply

  • 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.