Forum Discussion
Mayur_Sutare
MVP
Hello,
Bind pool 'websitenew' to the virtual server associated with "test.abc.com" and apply below iRule to same VS.
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] ends_with "Lang=vi" } {
http::redirect "https://test.abc.com"
}
}
Hope it helps!
Mayur
Tuan_Vu
Mar 31, 2020Nimbostratus
hello,
But, i config many site use only IP address. Can you tell me more clearly, Please!
I try:
when HTTP_REQUEST {
if { [HTTP::host] starts_with "test.abc.com"} {
Pool websitenew
} elseif {[string tolower [HTTP::uri]] ends_with "Lang=vi" } {
http::redirect "https://test.abc.com"
}
}
Not working :(