Forum Discussion

Lisa_Backer_107's avatar
Lisa_Backer_107
Icon for Nimbostratus rankNimbostratus
Apr 06, 2006

Simple http redirect rule

Hello,

 

 

I'm also new to Bip IP and would like to move our IIS redirects to Bip IP to ease maintenance. I've set up a test and it doesn't appear to work (request is not redirected when I type http://www.mydomain.com/testactf).

 

 

The syntax I used is:

 

 

if (http_uri ends_with "testactf") {

 

redirect to "http://%h/calendar/"

 

}

 

else {

 

discard

 

}

 

 

Any advice? Am I misunderstanding the http_uri variable? Thanks.

 

 

Lisa
  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    Lisa,

     

     

    your rule looks correct. It is impossible to tell from the data you've provided what's failing. You can add log statements to your rule in order to troubleshoot the problem. Please refer to following thread for hints how to do that: Click here
  • Just wanted to follow up that the rule syntax was correct (and thanks for confirming this). Our problem was in the association with the virtual server. I didn't realize that there could only be a single rule for each virtual server and so now this is set up and working. The more I work with it though, the clearer its becoming.

     

     

    Thanks.