Forum Discussion

Blue_whale's avatar
Blue_whale
Icon for Cirrocumulus rankCirrocumulus
Jan 31, 2022

Need help to understand re-direct irule

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]] 
  }
}
  •  Hi Blue_whale, 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.

    • Blue_whale's avatar
      Blue_whale
      Icon for Cirrocumulus rankCirrocumulus

      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 ?

  • 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.

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

     

     

     

     

     

    My Balance Now