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...
ShakN_167332
Nimbostratus
Sep 10, 2014hi i have the same issue, i tried the same but when user types lower case redirection works but when users types uppers it is not working..
eg user come /bseu/finance it should redirect to /sites/finance this is working..now if user comes with /bseu/FINANCE it is not redirecting to sites.
if { [class match [string tolower [HTTP::path]] starts_with test] } {
set origin [class match -name [string tolower [HTTP::path]] starts_with test]
set new [class match -value [string tolower [HTTP::path]] starts_with test]
HTTP::uri [string map "$origin $new" [HTTP::uri]]
log local0. "New URI = $new" }
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