Forum Discussion

bcarreker's avatar
bcarreker
Icon for Cirrus rankCirrus
Apr 09, 2020

Redirect Issues

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"?

  • 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"
         }
    }