Irule to direct traffic to a particular server

I have a 4 servers behind the vip , wondering based on the a particual string or read only calls can i divert all the traffic to app1 behind the vip. Inorder to acheive this how can i write the irule.Please assist me on this.

Where does the string exist ?

If it is in URI:

when HTTP_REQUEST {
if { [HTTP::uri] eq "/string" } {
pool POOL_APP1
}
}

If you don’t want to create separate pool:

when HTTP_REQUEST {
if { [HTTP::uri] eq "/string" } {
pool POOL_DEFAULT member 10.10.10.10 80
}
}

Request comes on port 443 based on the url content( such as /connectors /customers/custweb.asx) all the traffic need to go to pool1 else pool2 .

In this process we will be performing ssl offload on f5 , inspect the packet and again decrypt the packet to the pool members. They want all the way encrypted traffic.

How can I achieve this .Need some inputs please.

Experts please assist me with this request.