geffryti_32102
Feb 24, 2010Nimbostratus
Help please... my irule fails all the time
Help please! I can't see what's wrong with my iRule, v9 F5 just says that it's failing based on the stats.
when HTTP_REQUEST {
if { $HTTP::uri == "/wi/wpi_jp.jsp" } {
HTTP::redirect "https://abc.com/wi/wpi_jp.jsp"
} elseif { $HTTP::uri == "/sp2" } {
HTTP::redirect "http://abc.com:8086/rtpatch/sp2"
} elseif { $HTTP::uri == "/ub" } {
HTTP::redirect "http://abc.com:8086/rtpatch/ub"
} elseif { $HTTP::uri == "/wpi" } {
HTTP::redirect "http://abc.com:8082/wpi/wpi_jp.jsp"
} elseif { $HTTP::uri == "/IET" } {
HTTP::redirect "http://abc.com:8086/IET"
} else { HTTP::redirect "http://abc.com[HTTP::uri]"
}
}