Forum Discussion
aguley_212957
Nimbostratus
Dec 03, 2015iRule for Port
We are migrating an internal portal that we have running through the Big IP. I want to write an iRule to redirect users if they try to go to the old page to the new one. The url is the exact same e...
StephanManthey
Nacreous
Dec 03, 2015Hi,
I assume your existing virtual server is listening on on TCP/50100 and you have added a new one to listen on TCP/57701. As all new connections to the old virtual server will match the port 50100 anyway you dont need to test the condition. Instead you just add the iRule to it:when HTTP_REQUEST {
HTTP::redirect "https://abc.com:57701/irj/portal"
return
}
The default pool can be removed.
Thanks, StephanRecent 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