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...
susand_126519
Nimbostratus
Sep 23, 2014Hi Chris, You shouldn't need the switch. This should do it:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] eq "/livelink/livelink.exe" } {
HTTP::redirect "http://[HTTP::host]/otcs/cs.exe" }
}
See if the above works to make sure the uri is being matched then you can add the code to create a custom response if you still need to.
ChrisBlack_1713
Nimbostratus
Sep 23, 2014Would this preserve the portion of the URL after /livelink/livelink.exe
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