Forum Discussion
Lance_Simon_557
May 03, 2007Historic F5 Account
redirect iRule to different uri
have a vip on port 80
pool members on port 50100
need to have this come to the vip
http://sapxpq.browning.k12.ia.us
and redirect it to
http://sapxpq.browning.k12.ia.us:50100/irj/portal
what is the simplest way of accomplishing this?
Thanks
- JRahm
Admin
This will do what you are asking:when HTTP_REQUEST { if { ([HTTP::host] eq "sapxpq.browning.k12.ia.us") and [HTTP::uri] < 2 } { HTTP::redirect "http://sapxpq.browning.k12.ia.us:50100/irj/portal" } }
- Kevin_Stewart
Employee
Try this: - Deb_Allen_18Historic F5 AccountHey Lance --
to[HTTP::uri]
to test whether the URI is longer than "/".[string length [HTTP::uri]]
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