Forum Discussion
Umar_Raoof_1332
Nimbostratus
Oct 16, 2015Simple redirect irule not working in V11... its working in V10 for long.... need help?
when HTTP_REQUEST { if { [HTTP::path] eq "/" } { HTTP::redirect "http://[HTTP::host]/XXX" } }
1 Reply
- Kevin_Stewart
Employee
The code looks fine. What indication are you getting that it's not working? Perhaps some additional logging will give you more information.
when HTTP_REQUEST { log local0. "path = [HTTP::path]" if { [HTTP::path] eq "/" } { log local0. "redirecting to http://[HTTP::host]/XXX" HTTP::redirect "http://[HTTP::host]/XXX" } }
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