Forum Discussion
Art_Sholty_6751
Nimbostratus
Oct 29, 2014Simple iRule failing
I am trying to implement what I thought would be a very simple iRule but I'm unable to get it to process successfully. I am trying to issue a 302 HTTP redirect based on the presence of a specific URI...
R_Eastman_13667
Oct 29, 2014Historic F5 Account
Because you are comparing a tolower string to a mixed case string, the evaluation will never be true. Change your URI to the below. Notice Service is now service.
when HTTP_REQUEST {
if { [ string tolower [HTTP::uri]] contains "/httpservices/login/loginservice.aspx"} { HTTP::redirect https://login.devstage1.weightwatchers.com/mobilelogin/mobile
log local0. "Chassis Redirect" }
}
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