iRule: modifying the uri without a redirect
In this case the user wants to change the uri of a HTTP request without forcing a redirect from the client.
We have a unique situation where a client-based DLL is uploading a file to our...
Published Jul 27, 2005
Version 1.0DenisGrimard_34
Oct 17, 2013Historic F5 Account
I needed to do it like so to catch it properly:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" or [HTTP::uri] equals ""} {
set newuri "/signon.html"
log "Incoming uri - [HTTP::uri] being translated to $newuri"
HTTP::uri $newuri
}
}
If I didnt put in the second part of the if it wouldnt catch it if the user didnt put in the / in Chrome.