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...
Eric_St__John
Employee
Oct 29, 2014You have an upper case S in your "contains", but you've used string tolower. The following is a tad more efficient if you are only concerned with the path, and not the parameters. Also, you should probably scrub your code prior to posting next time:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "/httpservices/login/loginservice.aspx"} {
HTTP::redirect https://login.devstage1.weightwatchers.com/mobilelogin/mobile
log local0. "Chassis Redirect"
}
}Eric
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