Forum Discussion
gopalp
Nimbostratus
May 21, 2023Need 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 ...
JRahm
Admin
May 23, 2023if you control both the abc.com and xyz.com domains, you can do this by hosting both abc.com and xyz.com in your SNI list on the the client-ssl profile of the single virtual (or...use a different virtual and keep the client-ssl profiles separate). And the iRule that Paulius shared would be on the shared virtual or only on the abc.com virtual. I'd tweak the iRule slightly but it's fine the way it is.
when HTTP_REQUEST priority 500 {
if {([HTTP::host] == "abc.com") && ([string tolower [HTTP::uri]] == "/api-status")} {
HTTP::redirect "https://xyz.com/"
}
}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
