Forum Discussion
Apr 10, 2007
This iRule will work (assuming you are terminating the ssl connection on the BIG-IP - if not, then there is no way to inspect the payload).
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/images" } {
pool insert_image_pool_name_here
}
}
Just change "insert_image_pool_name_here" with the name of you pool containing the image servers and you should be set.
The above example will just direct the content at the different pool. If you truely want to do a HTTP redirect, then you'll have to have another virtual setup using the image pool and use the HTTP::redirect command to send the redirect directive back to the browser.
-Joe