Forum Discussion
Sean_O_Brien_65
Feb 23, 2011Nimbostratus
Looking for iRule to forward based on uri
I have an iRule here:
when HTTP_REQUEST {
if {[HTTP::uri] eq "/proposals/webpagenumber1*" } {
HTTP::redirect "http://domain2.com/Services_and_Products/sub1/sub2/P...
hooleylist
Feb 23, 2011Cirrostratus
Hi Sean,
If the comparisons are all the same (check if [HTTP::uri] starts with the list of URIs), you could put all of the URI patterns in a datagroup. You can then use finndclass (v9) or class search -value (v10) to look up the current URI against the datagroup.
http://devcentral.f5.com/wiki/default.aspx/iRules/findclass
http://devcentral.f5.com/wiki/default.aspx/iRules/class
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