iRule: modifying the uri without a redirect
Published Jul 27, 2005
Version 1.0Was this article helpful?
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