Forum Discussion
yuanqiang_22112
Nimbostratus
Oct 31, 2018https redirect
Hello: when client visit "; ,I need F5 redirect to ";.
How to use irules realize . Thanks !
- JW_189984Historic 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]" } }
- Samir_Jha_52506
Noctilucent
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]" } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects