casieowen_20826
Nimbostratus
Jun 26, 2015An http redirect irule that is executing but not actually redirecting
This is my first attempt at implementing an irule. I've written a few variations trying to get something to work. I've included them all below (replacing the sensitive values with xxx). The result is the same: each of the rules below execute when I load a page with "xxx" in the URL (can see the number of executions increasing in the statistics area), but the redirect doesn't happen. The F5 irule editor reports that the syntax for each is valid.
when HTTP_REQUEST { if { [HTTP::uri] contains "xxx"} { HTTP::redirect "" } }
when HTTP_REQUEST { if { [HTTP::uri] contains "xxx"} { HTTP::redirect "[HTTP::uri]" } }
when HTTP_REQUEST { if { [HTTP::uri] contains "xxx"} { HTTP::redirect } }