Forum Discussion
Joe_Pipitone
Nimbostratus
Apr 13, 2010Big-ip syslog errors continue
After combining multiple redirect iRules into one master iRule, I'm still getting the following error in the big-ip logs.
I was under the impression that having separate iRules with redirect statem...
hoolio
Cirrostratus
Apr 13, 2010Hi Joe,
I'd suggest adding the all of the redirects to a single switch. You could have a nested switch if you wanted to. The key is to make sure that a single request will only trigger a redirect once. In other words, how would you want to handle a request for www.domain.com/admin? Currently, this would match both your checks for a URI starting with /admin as well as the check for a host of www.domain.com.
Or you could exit the HTTP_REQUEST once you've done one redirect using the 'return' command. But I think it's better to consider the different cases where you'd want to issue a redirect and code them explicitly.
Aaron
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