Forum Discussion
doc_hack_12696
Nimbostratus
Oct 21, 2010URI substitution
I am trying to change the URI such that CI in the URI is replaced by the value obtained in the FILTER http header. I need to make it in such a way that the user still sees /csn/CI/value1/generic.html ...
hoolio
Cirrostratus
Oct 21, 2010Hi,
The curly braces prevent variable expansion. So the string map is probably doing a literal replacement of "$NCI". If you replace the curly braces with double quotes it should work:
HTTP::path [string map -nocase "/csn/CI/ /csn/$NCI/" [HTTP::path]]
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
