09-Apr-2020 06:47
I have a redirect profile set up to perform URI translations. It is set to translate:
https://abc.com to https://def.com
This rule works, but it works both ways. Not only does abc translate to def, but def can redirect to abc. The customer does not want this to work both ways. Any way I can disable "def" from redirecting to "abc"?
11-Apr-2020 18:42
First disable redirection on def.com vip which is returning to abc.com
And apply iRule redirection on abc.com to def.com vip.
when HTTP_REQUEST {
if { [HTTP::host] equals "abc.com"} {
HTTP::redirect "https://def.com"
}
}