Forum Discussion
Mohamed_Lrhazi
Altocumulus
Mar 20, 2013Help improve http redirect iRule
I wrote this iRule so that my team could hopefully manage HTTP redirects easily, using a simple string data class with this format :
Host,URI,TARGET_URL,HTTP_CODE
Example:
www.example....
Mohamed_Lrhazi
Altocumulus
Mar 20, 2013Yes, makes sense to sacrifice the wildcarding of hosts for performance. but in my version, I think 10.0, there does not seem to be a way to define a string data group as key and value, but just a list of strings....
Maybe there is a way though.. am thinking about it....
I added an improvement to the rule, where the 'taget" field is "eval"ed, so the user could put:
*.example.com,/foo/bar*,http://target.site.com[HTTP::uri],301
and it would behave like http classes do.
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