Forum Discussion
sbrudolf1_14757
Nimbostratus
Mar 16, 2017Problem with iRule Redirect
I have created an irule that should be redirecting https traffic to a different site. I have a similar redirect on an http virtual server, is there something i am missing? The https Virtual server is performing ssl offloading and nothing shows in the logs.
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/psp/CS9PRD2" } { log local0. "Attempt to CS9PRD2" HTTP::redirect "; } }
1 Reply
if { [string tolower [HTTP::uri]] starts_with "/psp/CS9PRD2" }You are converting your URI to all lowercase and then comparing to a string containing uppercase chars, this seems to be the cause.
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