Forum Discussion
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]]
}
}
- JRahmAdmin
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_whaleCirrocumulus
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 ?
- JRahmAdmin
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.
- Dean5933Nimbostratus
Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.
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