Forum Discussion
demmo_251289
Nimbostratus
May 31, 2016redirect for uppercase URI
Hello, I have a issue with a redirect, part of the URI is uppercase /something/somethingelse/NEW/index.html, and I'd like to redirect to lower /something/somethingelse/new/index.html
Now, if I d...
- May 31, 2016
If you know which part of the uri is uppercase, you can change the if condition like below :
when HTTP_REQUEST { if { [HTTP::path] contains "/NEW/"} { HTTP::redirect [string tolower [HTTP::uri]] } }
Yann_Desmarest_
Nacreous
May 31, 2016If you know which part of the uri is uppercase, you can change the if condition like below :
when HTTP_REQUEST {
if { [HTTP::path] contains "/NEW/"} {
HTTP::redirect [string tolower [HTTP::uri]]
}
}
raj_paras_16233
Nimbostratus
Oct 21, 2016Thanks Yann Desmarest. Thats worked for me as well. The option to vote for your answer seems to be disabled for some reason. Anyway, Thanks Heaps!
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