cancel
Showing results for 
Search instead for 
Did you mean: 

Need help to understand re-direct irule

Sarovani
Cirrostratus
Cirrostratus

Hi Experts !,

 

Need your help to understand the below irule , 

This irule is applied to 443 VIP .Please help me to understand the impact of the below irule ,

when HTTP_REQUEST {
  if { [HTTP::uri] contains "redirect_uri=https://test-ck2-ind.example.com" } {
    HTTP::uri [string map {"redirect_uri=https://test-ck2-ind.example.com/" "redirect_uri=http://test-ck2-ind.example.com/"} [HTTP::uri]] 
  }
}
4 REPLIES 4

JRahm
Community Manager
Community Manager

 Hi @Sarovani, this iRule looks at the URI of a request, and if it contains that string, it will then rewrite the URI via the string map command to the non-ssl request.

@JRahm thanks a lot for your response ....

But why do we actually need this type of irule . What are we trying to achive in the above irule ? In which scenario we actually need this irule ?

JRahm
Community Manager
Community Manager

I can't speak to your business requirements for that, but I will say that it's rare to redirect a secured URL to an insecure one. It could be that was created for a specific use case to force a login or interrogate differently, but without greater context from your end I couldn't say.

Dean5933
Nimbostratus
Nimbostratus

Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.

 

 

 

 

 

My Balance Now