Forum Discussion
yuanqiang_22112
Nimbostratus
Oct 15, 2018irules for 302 redirect
Hi: I need a irules , when browser input "; F5 redirect ";.
If you can give a irules ,no matter what character the browser enters , F5 redirect “https://www1.cnrmall.com” ,It will be better .
- youssef1
Cumulonimbus
Hi,
try this:
when HTTP_REQUEST { if {!([string tolower [HTTP::host]] equals "www1.cnrmall.com")}{ HTTP::redirect "http://www1.cnrmall.com[HTTP::uri]" } }
if host id different to www1.cnrmall.com we redirect user to www1.cnrmall.com and keeping the uri.
let me know if you need more details.
regards,
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