Forum Discussion
brownie6969_121
Nimbostratus
Jun 07, 2012Simple iRule redirect but looking for cleanest way
Hey guys i am back, so the irules you helped me with worked just as I wanted and i was asked to do but the code doesn't work with it and they can't figure it out. They are investigating but in the mea...
hoolio
Cirrostratus
Jun 11, 2012You can create a string data group with the source and target URIs to rewrite set as name=value pairs and then use the class command to perform the lookup. The iRule would look something like this assuming you name the data group uri_rewrite_dg.
when HTTP_REQUEST {
set uri [class match -value [HTTP::uri] equals uri_rewrite_dg]
if {$uri ne ""}{
HTTP::uri $uri
}
}
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