Joe_Pipitone
Mar 10, 2010Nimbostratus
iRule error in logs
The iRule below is throwing the following error in our logs. Can anyone help?
TCL error: our-rewrite HTTP_REQUEST - Operation not supported. Multiple redirect/respond invocations not allowed line 2 invoked from within HTTP::redirect http://sitename.org[HTTP::uri] default arm line 1 invoked from within switch -glob [HTTP::host] { / { HTTP::redirect http://sitename.org } default { HTTP::redirect http://sitename.org[HTTP::uri]...
Here's the iRule:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.sitename.org") } {
switch -glob [HTTP::host] {
"/" { HTTP::redirect "http://sitename.org" }
default { HTTP::redirect "http://sitename.org[HTTP::uri]" }
}
}
}