KJ_50941
Apr 25, 2013Nimbostratus
Irule for transparent redirect
Hi, I need an iRule for transparent redirect, basically I have VIP in legacy floor which needs to send partial traiffic to another VIP for example application 1 while they are migration all applications to new servers..
will below irule works? is this transparent to Clinets? I am going to aplly below iRule on legacy VIP.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri] ] {
"/app/*" {
HTTP::redirect “https://www.example.com[HTTP::uri]”
}
“/app2*” {
HTTP::redirect “https:://www.example .com[HTTP::uri]”
}
}
Please help.
thx