Forum Discussion

John_Masgalas_4's avatar
John_Masgalas_4
Icon for Nimbostratus rankNimbostratus
May 21, 2008

url redirect

This one is probably very simple. Currently I have a pool set up for webmail. The virtual server gwmail is load balancing the pool. They can get to webamil by typing http://gwmail/gw/webacc. I want the user to be able to type http://gwmail in the address bar of the browser and get sent to http://gwmail/gw/webacc.

 

 

I did try this but it went into a loop.

 

 

when HTTP_REQUEST {

 

HTTP::redirect http://gwmail/gw/webacc/

 

}

 

 

 

Any ideas on how to change the irule?

 

 

Thanks!

 

 

 

  • Steve_Brown_882's avatar
    Steve_Brown_882
    Historic F5 Account
    I would try something like

     

     

    when HTTP_REQUEST {

     

    if { [HTTP::uri] equals "/"} {

     

    HTTP::redirect http://gwmail/gw/webacc/" }

     

    }