Forum Discussion
Problem 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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