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...
Kai_Wilke
MVP
Dec 03, 2015Hi Aguley,
if using a single Virtual Server for both ports you need to evaluate the port number to selectivly redirect the request.
if { [TCP::local_port] eq 57701 } then {
do nothing
} elseif { [TCP::local_port] eq 50100 } then {
HTTP::redirect "https://abc.com:57701/irj/portal"
}
If using independent Virtual Server for each port you don't need to evalutate the port number. Simply put a...
HTTP::redirect "https://abc.com:57701/irj/portal"
... into the iRule of the Virtual Server listening on port 50100 to redirect every request to the new site.
Cheers, Kai
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