Here is my question, in our case the redirected URI will have the same fqdn as per the source & will be hosted on a different virtual server and different physical server
From the user point of view. They will always see www.testing.com.my/ke (redirected URI) & once the DNS resolved the fqdn, the traffic will always be pointed to the (A) server. Whereas we need the URL to point to the (B) server (www.testing.com.my/ke).
The issue here is:
www.testing.com.my/ke belongs to (B) virtual server,
while www.testing.com.my/jkm belongs to (A) virtual server.
The fqdn www.testing.com.my will always pointed to (A) virtual server IP.
Can F5 redirect this or not?
Please make few modifications in policy as given below. Once condition is matched (i.e. if uri ends with /ke), set redirect to the location where you want to point request to. e.g. https://10.10.10.10/ke . So request will be redirected to mentioned location.
I tried this policy in my lab setup and it is working fine. Redirection is happening for only matched traffic. Please try same in your environment.
Also just make sure, you have selected execute all matching rule under strategy (pls see below snap). So it will match all the rules written under policy.
Hope it helps!