arripay_6298
Jun 28, 2016Nimbostratus
Redirect Problem
Hi, using a single and pool with multiple hosts, trying to do a redirect based on host name and uri match using the following.
when HTTP_REQUEST { log local0. "Request: [HTTP::host][HTTP::uri]" if {[HTTP::host] equals "website1.com"}{ if { ([HTTP::uri] contains "app/commission") or ([HTTP::uri] contains "api/tickets") or ([HTTP::uri] contains "api/manageclasses") or ([HTTP::uri] contains "app/trainer") or ([HTTP::uri] contains "app/target") } { HTTP::redirect "www.website2.com" }} }
If I select website1.com/app/commission matches but redirects to website1.com/app/commission/www.website2.com
Any help greatly appreciated