Simple iRule with Sticky?
I'm trying to create what I think is a fairly simple iRule:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/sites/tech*" } {
pool Tech_Web_Pool_80
} else {
pool Main_Web_Pool_80
}
}
The issue I have is that the first part of the iRule works. It sends you to the right web pool but the page is missing content because it is trying to load jpegs, png files, and gifs for the buttons etc ... These graphic files are in the /main/images folder which due to iRule above gets sent to the other pool.
Is there a way so that if it matches the first part of the iRule and goes to my Tech_Web_Pool_80 that it then forces the client to retrieve all content and links from that pool?
The main problem is that the /main/images directory exists in both pools but the graphic images are completely different since they are on different versions of our website.
Any help would be appreciated!
Thanks!
James