Forum Discussion

sbrudolf1_14757's avatar
sbrudolf1_14757
Icon for Nimbostratus rankNimbostratus
Mar 16, 2017

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.