Forum Discussion
Mia_27938
Nimbostratus
Mar 15, 2013How to redirect based on same URL
Hi evreyone.
I have two VS and two Pools as follows
==================================
VS_1 (10.10.10.20:80)
P1 (20.20.20.20:80)
VS_2 (10.10.10.20:8080) ...
The_Bhattman
Nimbostratus
Mar 16, 2013Hi Ho,
Sounds like a simple redirect
There is a pretty simple way to do conditional redirects, which is using HTTP CLASS profile. There is a forum topic on it
https://devcentral.f5.com/community/group/aft/2160949/asg/5
Another is using the iRule
Here is an example of what it could look like
when HTTP_REQUEST {
if { ([HTTP::host] eq "was.abc.com") and ([string tolower [HTTP::uri]] ends_with "/") } {
HTTP::redirect http://[HTTP::host]/sso/unity_login.jsp
}
}
I prefer the easy button so I usually go with HTTP CLASS Profiles for this kind of stuff.
I hope this helps,
Bhattman
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