Using irule which inspects perticular URI

My current set up is as follows (I have used random IP and domain name)

External facing VIP (224.22.61.41, domain name ) It has four pool members - 192.168.1.21

- 192.168.1.20

- 172.168.1.1 -172.168.1.2

we want any client request to URI to be load balanced to 172.168.1.1 and 172.168.1.2 only and rest of other request should be directed to 192.168.1.20&21

Could someone please help me out with the irule that can be attached to the VIP ?

when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] eq "/review1.htm.htmlone" } {
pool POOL_A
} else {
pool POOL_B
}
}

Use 2 pools. The above iRule is untested. You may have to tweak it to suit your needs.

Hello,examples from the page below would probably solve your problem: DevCentral - An F5 Technical Community