Forum Discussion
ChrisRodrigues
Nimbostratus
Aug 02, 2019string map insert
I have the following uris that I would like to map a string and prepend a value to the string (in the examples below snt ) Any help with the iRules would be greatly appreciated "/here.there/s...
ChrisRodrigues
Nimbostratus
Aug 02, 2019Thanks JG for the quick responses. I tried this that worked. I could do this because I'm using the same pool for all my earlier examples.
when HTTP_REQUEST {
set uri [HTTP::uri [string map {"/here.there " "/snt/here.there "}[HTTP::uri]]]
pool pool_name
}
realized I was just pre-pending snt (more like a find and replace)
Thanks again!
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