Forum Discussion
rdessert_76127
Nimbostratus
Dec 06, 2012Using switch vs if to clean up irule
I'm attempting to clean up an irule that currently uses lots of "if" statements and want to use the "switch" statement instead. I've attempted to format the iRule as follows, but I cannot seem to ge...
hoolio
Cirrostratus
Dec 06, 2012You should also add a return after this line to ensure that you don't continue evaluating the rule code after sending a redirect:
HTTP::respond 301 Location "http://www.site.org[HTTP::uri]"
return
Aaron
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