Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

WUM_113639's avatar
WUM_113639
Icon for Nimbostratus rankNimbostratus
Oct 10, 2013

http request redirection/rewrite

Hello,

I am having problem in simple redirection....

I want to redirect clients hitting the VIP ip address (http://10.1.1.1) to (http://web-server/mypage)

I have written following irule but it doesn't seem to be working....

when HTTP::request {

if { [HTTP::host] equals "http://10.1.1.1" } {

HTTP::redirect "http://web-server/mypage"

}

}

I would appreciate answers...

5 Replies

  • Try this:

    when HTTP_REQUEST {
     if { [HTTP::host] equals "10.1.1.1" } {
      HTTP::redirect "http://web-server/mypage"
     }
    }
    
  • Thanks for your answer Cory...

     

    I forgot to mention that...I had also tried that as well but it had not worked....

     

    I will again give it a try...

     

    • Cory_50405's avatar
      Cory_50405
      Icon for Noctilucent rankNoctilucent
      The trigger wasn't properly formatted in what you posted above. Also, HTTP::host will only return the host IP address without any http:// You tried it before exactly as I posted above and it did not work?