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

Forum Discussion

Senthil_7991's avatar
Senthil_7991
Icon for Nimbostratus rankNimbostratus
Sep 13, 2017

Irule Redirection URL

Hi,

 

We would like to redirect from "https://apac.com/cit/* to ";

 

Please assist with this iRule

 

Thank you

 

3 Replies

  • I hope it should work with below iRule, Please correct me if am wrong. when HTTP_REQUEST { if { [HTTP::uri] eq "/" } { HTTP::redirect "; } }

     

  • Snl's avatar
    Snl
    Icon for Cirrostratus rankCirrostratus

    Try below

    when HTTP_REQUEST {
        if { [HTTP::host] equals "abc.com" and [HTTP::uri] starts_with "/cit/*" } {
            HTTP::redirect "https://[HTTP::host]/Cit/RDC/default.htm"
        }
    }
    
  • Hi,

    you can do it with a Local trafic policy instead of irule (Policies only support 302 redirect, not 301)

    or you can correct your irule to :

    when HTTP_REQUEST {
        if { [HTTP::host] equals "apac.com" and [string tolower [HTTP::uri]] starts_with "/cit" } {
            HTTP::redirect "https://abc.com/Cit/RDC/default.htm"
        }
    }