Forum Discussion
Nov 03, 2022
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.
- jamie_staplesSep 13, 2023Cirrus
This looks a lot like my current conundrum...I will test it out and let you know if I have any luck.
Thanks!