Forum Discussion
siyadh_121603
Nimbostratus
Aug 14, 2014Rewrite http redirect from one VIP to another VIP
Hi,
We have to make iRule, which should redirect to another VIP in the same LTM if one specific URL trigger.
eg: request URL : http://abc/xyz
redirect URL: http://abc:40001
Thomas_Gobet
Nimbostratus
Aug 14, 2014Hi,
Here is the iRule you need :
when HTTP_REQUEST {
if {([string tolower [HTTP::uri]] contains "/xyz") and [string to lower [HTTP::host]] equals "abc"}{
HTTP::redirect http://abc:40001;
}
}
- siyadh_121603Aug 14, 2014
Nimbostratus
Hi Thomas, Thank you for your quick response. Is there missing any syntax...? Because we are not able to save it from iRule Editor (it shows red).
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