Forum Discussion
Gill_32697
Nimbostratus
Feb 10, 2014uri redirects
So i need to redirect to website based on a uri. I have about 100 redirect and I my need to add, remove or edit from time to time. Below is what I have but is giving me an error when I save in editor...
Arie
Altostratus
Sep 11, 2014@Shakti
When you do the replacement at the end you're trying to match $origin in the original URI, which would contain the upper case string if that's what the user requested.
Try this:
HTTP::uri [string map "$origin $new" [string tolower [HTTP::uri]]]
However, if the web server (or the application) is case-sensitive this may cause other problems.
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