HTTP Uri redirect after APM Policy
Hello All,
I've went through few posts on devcentral for executing HTTP_REQUEST after APM Policy, But none worked for me. So here is the situation,
I have got service running at https://my.company.com/SERVICE. But i need users to hit https://my.company.com/test/service and then i redirect them to https://my.company.com/SERVICE.
But the problem is i'm using branch rules in APM for "Source IP and Uri" lookup. Say Source IP is 100.X.X.X & URI i'm looking for is /test/service.
When i use redirection irule, HTTP_REQUEST executes before APM and when it reaches APM policy, the URI will be /SERVICE and APM will deny the request since its looking for /test/service.
I tried [ACCESS::policy result] eq "allow" but it didn't seem to work. Can someone provide me a full irule for this requirement.
Any help is much appreciated. Thanks in advance