Forum Discussion
Jay_PL
Nimbostratus
Mar 27, 2019need irule for re-direction based on URL and port
Need help on the irule for the below scenario.
when user hits, abc.broadcom.com --> redirect to https://abc.broadcom.com/login ----> This is working for me
When user hits, abc.broadcom.com:8080 ...
Lee_Sutcliffe
Nacreous
Mar 27, 2019Are you sure you mean redirect? Redirecting to the same host will cause a redirect loop. I think you just mean URI rewrite, which can be done with a very simple iRule or using a Local Traffic Policy
when HTTP_REQUEST {
if {[HTTP::uri] equals "/"} {
HTTP::uri "/login"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects