Forum Discussion
ChrisBlack_1713
Nimbostratus
Sep 23, 2014HTTP redirect not working
I have the following I rule that is working however it will not redirect uppercase /LIVELINK/LIVELINK.EXE Any ideas on how to get it to redirect both upper and lower case?
when HTTP_REQUEST {
pa...
mimlo_61970
Cumulonimbus
Sep 23, 2014OK, I see the problem, though I don't know the fix off the top of my head. Your switch matches on both cases, but your string map only matches the lower case version. Here is the output of what happens with each
Lowercase works: GET /livelink/livelink.exe/isthisstillhere HTTP/1.0
HTTP/1.0 301 Moved Permanently
Location: http://ContentServerQA.idexxi.com/OTCS/cs.exe/isthisstillhere
Cache-Control: no-cache
Pragma: no-cache
Connection: close
Content-Length: 0
Uppercase matches the switch, but not the string map. See the LIVELINK still in the URL
GET /LIVELINK/LIVELINK.exe/thisshouldstillbethere?andthis=this HTTP/1.0
HTTP/1.0 301 Moved Permanently
Location: http://ContentServerQA.idexxi.com/LIVELINK/LIVELINK.exe/thisshouldstillbethere?andthis=this
Cache-Control: no-cache
Pragma: no-cache
Connection: close
Content-Length: 0
maybe set HTTP::uri to a variable, string tolower that assignment. Then switch and string map on the now lowercase variable??
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