Forum Discussion

Jeff_Morrison_4's avatar
Jeff_Morrison_4
Icon for Nimbostratus rankNimbostratus
Dec 22, 2005

HTTP Redicet fails

Created a iRule to redirect to a different URL but the browser never gets the redirect, only the famous Page Cannot be displayed message. In the below rule Customer5 just fails. If I change Customer5 to go to a pool the rule works, only fails on the redirct.

 

 

Thanks for you help in advance.

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] contains "/Customer1"

 

or [HTTP::uri] contains "/Customer2"

 

or [HTTP::uri] contains "/Customer3"}{

 

pool POOL1

 

} elseif { [HTTP::uri] contains "/Customer4"}{

 

pool POOL2

 

} elseif { [HTTP::uri] contains "/Customer5"}{

 

[HTTP::redirect "https://sdds.businessdatainc.com/controller"]

 

}

 

}
  • remove the brackets surrounding the redirect:

    
     HTTP::redirect "https://sdds.businessdatainc.com/controller"