Ram_T_S
Sep 28, 2018Altostratus
New iRule creation for redirection
Hi Team,
I have following virtual server in my Loadbalancer
URL : http://insurance.xyz.com/LifeInsurance VIP : 10.1.1.1 Pool Member : 10.0.1.1
We are going to take out 10.0.1.1 for Maintenance. So we need to redirect the user request to another server ";
I have written the irule like below:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "insurance.xyz.com" and [HTTP::path] eq "/LifeInsurance" } {
HTTP::redirect "https://newinsurance.xyz.com [HTTP::uri]"
}
}
But the issue is when user try to access the http://insurance.xyz.com/LifeInsurance it will first go to SSO site which is not there in F5 and then reaching the actual site. So this redirection is not happening. Can somebody help me to construct the iRule for this. SSO URL would be: https://sso.xyz.com/nidp/idff/sso?id=commonlogin&sid=0&option=credential&sid=0&target=http%3A%2F%2Finsurance.xyz.com%2FLifeInsurance%2F