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.0Jul 21, 2008
Doh, I always forget that HTTP::host doesn't have a write method. This should do it for you.
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.foo.com") && ([HTTP::uri] eq "/file1.txt" } {
HTTP::header replace "Host" "www.bar.com"
HTTP::uri "/file2.txt"
}
}
-Joe