Forum Discussion
Local Traffic Policy for complex URI transform; order of eval relative to iRules
A few thoughts here.
-
A policy will route traffic based on the URI, and a rewrite profile will remap the URI. The two of these will work together, but consider that you're now managing TWO configuration objects. Also, the rewrite profile (at least in 11.5) has this odd little nuance where URIs have to end with a "/", which in this case doesn't seem like what you need.
-
I tested it, and as my instinct suggested, using the policy for routing and iRule for mapping will also work. It's less of an order of operations thing than a "bucket theory" sort of thing, but I won't dive into the details here. Suffice it to say, it should work, but then again you're now managing TWO configuration objects instead of the one (simple) iRule.
You can certainly use a policy and rewrite profile/iRule to achieve what you're looking for, but I personally would stick with the much simpler to manage single iRule for all of it.
Recent Discussions
Related Content
* 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