Forum Discussion
Policies or iRules for Redirection to at least 2 URLs
Hello ,
>> I see you want to add a /path , so Try this iRule For redirection :
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "host1") and ([string tolower [HTTP::uri]] eq "/path1") } {
HTTP::redirect "http://host1/path2"
} elseif { ([string tolower [HTTP::host]] eq "host2") and ([string tolower [HTTP::uri]] eq "/path3") } {
HTTP::redirect "http://host3/path4"
}
}
>> For Pool selection , you can add pool Action selection after each Redirection selection "HTTP::redirect "http://host1/path2" .
Or you can create another iRule for Pool Selection and attach it to the same Virtual server.
This looks a lot like my current conundrum...I will test it out and let you know if I have any luck.
Thanks!
Recent Discussions
Related Content
* 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