For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Ozzy's avatar
Ozzy
Icon for Cirrus rankCirrus
Sep 26, 2024

irule does not work in browsers other than google

Hello forum team, 
I wrote and implemented an irule for redirection. It doesn't work in Chrome without adding “/” at the end of the path.  In Firefox and Ms edge it doesn't work at all. 
My irule is as follows:

when HTTP_REQUEST {
 if { [HTTP::path] equals “/” } {
    HTTP::redirect “/wm/”
  }
}

Has anyone had experience with this?  

1 Reply

  • HTTP::redirect should used with url not just path

    so try 

     

    when HTTP_REQUEST {
     if { [HTTP::path] equals “/” } {
        HTTP::redirect "https://[HTTP::host]/wm"
      }

    }

     

    or replace https with http if needed