BIG-IP : iRule return statement
From the docs : Causes immediate exit from the currently executing event in the currently executing iRule. iRule processing is not aborted, and subsequent events will be triggered and evaluated. Note that return does not: - cause an exit from the iRule altogether; - prevent the same event from firing in another iRule; or - prevent the same event with a higher priority value from firing in the same iRule. To prevent further processing of an event in the current rule or other rules for the current TCP connection, you can use 'event EVENT_NAME disable'. Here are my questions : How can the same event exist more than once within a single iRule ? Is 'current TCP connection' refer to a session that is maintained across multiple request-response sequences from a given client-browser ? Or does each new request initiate a new TCP connection ?1.1KViews0likes1CommentRedirect for URL and URI in one Irule
I need to redirect one url called usparks.something.ca to https://something.ca/attractions.php and at same time usparks.something.ca/fr tohttps://something.ca/fr/attractions.php. My Irule looks like this: when HTTP_REQUEST { if { [HTTP::host] equals "usparks.something.ca"} { HTTP::redirect "https://something.ca/attractions.php" #return } elseif {([string tolower [HTTP::uri]] equals "/fr") } { HTTP::redirect "https://something.ca/fr/attractions.php" [HTTP::uri] } } But for some reason usparks.something.ca/fr still redirects to https://something.ca/attractions.php not https://something.ca/fr/attractions.php. Please advise. Thanks, Igor272Views0likes2Comments