Forum Discussion

Raj_Zucre_Ramir's avatar
Icon for Nimbostratus rankNimbostratus
May 18, 2011

Redirection inside the pool using different URI

Hi Guys,



May I seek your help again?




I have this VS:





virtual VS_Headlines {


translate service enable


snat automap


pool headlines_pool_8402




ip protocol tcp


profiles {


http {}


tcp {}










pool headlines_pool_8402 {


action on svcdown reselect


slow ramp time 60


monitor all TCP_8402


members {}






I would like to create a http --> https redirect and at the same time uri redirection where if there is "/" then it should be redirected to /newsliner




Is this possible? Redirection seems to be inside the pool?





1 Reply

  • I'd create a new port 80 virtual server on the same IP as the any port VS. You could then add an HTTP profile and use an iRule like this to do the redirection.

    when HTTP_REQUEST {
       switch [HTTP::path] {
          "/" {
              Send a 302 redirect
             HTTP::redirect "/newsliner"
      Rewrite the URI and send 
             HTTP::uri "/newsliner"
          default {
             HTTP::redirect "https://[HTTP::host][HTTP::uri]"