Forum Discussion
gopalp
May 21, 2023Nimbostratus
Need help with iRule
Hello,We have an existing application https://abc.com which is configured with F5.When we open the page and click on status tab it will route to https://abc.com/api-status. Now the users want to see ...
gopalp
Nimbostratus
Thank you for the update.Can you please share a sample iRule to achieve above usecase.
Paulius
May 22, 2023MVP
gopalp To perform the simple redirect it would be the following but if you did it on the F5 you would never receive the unique HTTP header from the server to carry over the users session after they went to the path you are referring to.
when HTTP_REQUEST priority 500 {
if {[HTTP::host] == "abc.com"} {
if {[HTTP::uri] == "/api-status"} {
HTTP::redirect "https://xyz.com/"
}
}
}
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