Forum Discussion
yuanqiang_22112
Nimbostratus
Sep 01, 2016https redirect can't update
hello
I write a irules ,but when I update ,it can't update ,please help me take a look.
**when HTTP_REQUEST { if { [HTTP::host] contains "https://jiedaibao.com"} { HTTP::redirect "https://www.jiedaibao.com" }}**

2 Replies
- yuanqiang_22112
Nimbostratus
- Vijay_E
Cirrus
Try:
when HTTP_REQUEST { if { [HTTP::host] contains "jiedaibao.com" } { HTTP::redirect "https://www.jiedaibao.com[HTTP::uri]" } }
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