Is iRule the correct method?
I am configuring a new policy on my F5 and I was looking to delve a little into iRules I think for part of this policy. I would like to know if an iRule would be the correct method to use? I have never written an iRule so please bare with me.
Effectively I will have 3 paths for a URL that I need to direct to the same internal server via a specified port. For example
Abc.com/prod. When someone accesses this link externally the F5 would direct queries to this location to Server1:1234.
Abc.com/test. When someone accesses this link externally the F5 would direct queries to this location to Server1:5678.
Abc.com/dev. When someone accesses this link externally the F5 would direct queries to this location to Server1:5600.
From what I have read so far it looks as though using an iRule for http. The iRule would be an "if uri contains "/test" then direct to "server1:5678"".
Am I correct here or am I totally going down the wrong method?