Forum Discussion
Irule redirect link error to default domain
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_VuMar 31, 2020
Nimbostratus
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 :(
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
