URL redirect to multiple paths
Hi. I have a request for a host name (example.123.com) that I need to redirect to 2 different paths. If a user types https://example.123.com I need to redirect it to https://example.123.com/loginpage1. This part I did with a traffic policy rule. Using the same VIP if someone types in https://example.123.com/loginpage2 it needs to go to the same server only to a different login page.
This what I'm using for a Policy Rule Conditions Operand Event Selector Negate Condition Values http-host Request all equals example.123.com http-uri Request path not contain /loginpage1/
Actions Target Event Actions Parameters http-uri Request Replace Path /loginpage1/
If I browse to the host and add /loginpage2 as the path it follows the rule and sends me to /loginpage1/. So my questions are 1.Can this be done in one or more policy rules and I'm just not doing it right or 2.Should it be done with an iRule and I am not good with irules.
Any feedback is appreciated