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

Forum Discussion

yuanqiang_22112's avatar
yuanqiang_22112
Icon for Nimbostratus rankNimbostratus
Oct 31, 2018

https redirect

Hello: when client visit "; ,I need F5 redirect to ";.

How to use  irules  realize . Thanks !

2 Replies

  • JW_189984's avatar
    JW_189984
    Historic F5 Account

    Hi,

    The irule below should meet your requirement.
    when HTTP_REQUEST {
        if { [string tolower [HTTP::host]] ends_with ".cnnic.net.cn" } {
            HTTP::redirect "https://whois.cnnic.cn[HTTP::uri]"
        }
    }
    
  • Can be written some thing like this also.

            when HTTP_REQUEST {
                if { [string tolower [getfield [HTTP::host] ":" 1]] eq "whois.cnnic.net.cn" } {
                    HTTP::redirect "https://whois.cnnic.cn[HTTP::uri]"
                    }
                }