Thanks Jerry, I removed @ sign, no problem on loading the iRule. I created data group as instructed, I have added entries as I needed to the data group, but for some reason, it is not working. No matter if I apply the irule or not it always goes to the default pool and main page. My data group has the entries a.com/x:=b.com/x and a.com:=c.com and a.com/y:=b.com/y. it always goes to default pool c.com no matter what I type. I have logging enabled. When I type a.com/x all I see stops at ending: Rule ProxyPass : VS=test, Host=a.com, URI=/x: Checking Content-Location=, $protocol= and the next line is Rule ProxyPass : VS=test, Host=a.com, URI=/x: Checking Location=, $protocol= and stops there and I only get the default c.com