Forum Discussion
Script throwing error
I am getting the following error in the logs every few seconds
TCL error: /Common/sfoitshortcuts - Operation not supported. Multiple redirect/respond invocations not allowed (line 3) invoked from within "HTTP::respond 301 location "https://www1.ucdenver.edu[class lookup $path sfoitshortcuts_dg]""
the script that is referenced is; hen HTTP_REQUEST { set path [string tolower [HTTP::path]] if { [class match $path equals sfoitshortcuts_dg] } { HTTP::respond 301 location "https://www1.thesite.edu[class lookup $path sfoitshortcuts_dg]" log local0."[$path]" break } } Anyone have any idea of what is wrong with the script?
Steven Albrecht University of Colorado Denver
2 Replies
- CharlesCS
Cirrus
The logic flow of all iRules associated with the virtual server must result in the execution of at most one
orHTTP::redirect
command. Remember that processing will continue after one of these operations is performed, so it's likely that a previous iRule has already issued a redirect/respond command.HTTP::respond - Stephane_Viau
Nimbostratus
Try adding return after the redirect if this is your only iRule. If you have multiple iRules then it can get a bit tricky but you could try using disable event + closing the TCP connection.
 
https://clouddocs.f5.com/api/irules/return.html
 
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
