Ed_27995
Jun 18, 2008Nimbostratus
iRule seems to block page request
Hi All,
I have created the following iRule-
when HTTP_REQUEST {
if {[findstr [HTTP::uri] "webctid=" 8 2] == "83"}
{HTTP::redirect "http://distance-ed.bcc.ctc.edu/bbmaint.asp"}
elseif {[findstr[HTTP::uri] "webctid=" 8 2] == "95"}
{HTTP::redirect "http://distance-ed.bcc.ctc.edu/bbmaint.asp"}
}
What I am trying to do is redirect student login requests, identified by the "83" or "95" in the above rule, to a maintenance page.
When I go into the iRule manager and make the iRule active, the login page does not display when I go to the site.
Do I need an else block to tell the BigIP that if the preceding conditions are not matched to forward the request to an app node normally? If so, how is that done?
My thinking when creating the iRule was that if the string was encountered in an HTTP request, the redirect would be triggered, but if the string was not encountered the web requests would processed normally.
Do I have the wrong event in HTTP_REQUEST?
Thanks in advance for your help!
Ed