In order to have an iRule that would direct traffic based on anything in the HTTP header you would need the HTTP profile and be performing SSL termination otherwise it will not work.
Thankyou! for the update but the SSL termination is currently on the server end . In that case , is there any alternative to tweak in the irule or configure a seperate policy .
If you have a HTTPS virtual server you need a Client SSL profile which is what you will have to configure. An additional note, you do not have a reason to have a Server SSL profile because the traffic is already encrypted without any SSL profiles encrypted.