Forum Discussion
nitass
Aug 09, 2013Employee
HTTP::redirect http://thenest-eur-de.example.com/_bla1bla2bla3?[HTTP::uri]
pool mypool pool won't be executed because HTTP::redirect already send response to client.
by the way, if my_pool is already assigned to the virtual server, you can adjust the irule something like this.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] > 0 } {
if { not ([HTTP::uri] starts_with "/_bla1bla2bla3?") } {
HTTP::redirect "http://thenest-eur-de.example.com/_bla1bla2bla3?[HTTP::uri]"
}
} else {
HTTP::redirect "http://whatever.com"
}
}