Forum Discussion
Jan_384807
Nimbostratus
Feb 27, 2019irule based on URI to select pool redirected back to http
Hi,
I need help here.
I'm using the same VS to create a irule to redirect to different server pools based on URI.
The irule which I created redirects back to http which is not what I'm expected.
...
Faruk_AYDIN
Altostratus
Feb 27, 2019when HTTP_REQUEST {
if { [getfield [HTTP::host] ":" 1] eq "test.abc.com" }
{
if {([string tolower [HTTP::uri]] starts_with "/testing") || [string tolower [HTTP::uri]] eq "/homepage" }{
HTTP::redirect https://test.abc.com/homepage/login
return
} else {
pool "poolB"
}
}
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
