Forum Discussion
Rosieodonell_16
Cirrus
Jun 01, 2015Need help with quick redirect irule
I am trying to get the redirect for the outlook iapp to work a little better. Here is the redirect:
when HTTP_REQUEST {
if { ([HTTP::uri] == "/") } {
HTTP::redirect https:...
Rosieodonell_16
Cirrus
Jun 02, 2015Yah, this code breaks the ability to create a new email etc.... I am just getting my users to clear their bookmarks etc... to hopefully fix the issue. But thank you for the help :(
- Rosieodonell_16Jun 04, 2015
Cirrus
Here is some code that the F5 engineer gave me to test. Still don't have time to test it but i thought the other people out there can have a look just in case they need it to: when RULE_INIT { set ::debug 0 } when CLIENT_ACCEPTED { if {[ info exists "first_loop"]}{ set first_loop 1 } else { set first_loop 0 } } when HTTP_REQUEST { if { $::debug } {log local0. "URI: [HTTP::uri] first_loop: $first_loop" } if { [HTTP::uri] == "/" } { if { $::debug } {log local0. "URI: [HTTP::uri] path_slash"} HTTP::redirect https://[HTTP::host]/owa/ } if { $first_loop == 0 } { if { $::debug } {log local0. "URI: [HTTP::uri] first_if: $first_loop" } set first_loop 1 if { [HTTP::uri] starts_with "/owa/" } { HTTP::uri /owa/ } } }
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