Forum Discussion
yuanqiang_22112
Nimbostratus
Oct 27, 2016https 302
Hello
When client browser input " redirect http to https ;If uri not contain " not redirect . I write the irules below ,please help me ensure it is right or not ?
Jinshu
Cirrus
Oct 27, 2016First of all,
You have uploaded wrong screenshot. 😉
Also you can try below irule..
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "web.cnrmall.com") and ([HTTP::uri] equals "/api/pay/alipay/notify") } {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
} else {
return
}
}
-Jinshu
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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