maayan_yosef_20
Feb 19, 2018Nimbostratus
iRule - Redirect by query string from datagroup
Hi Support, I need your help to set iRule that will check string on the query from data group and if he exist we'll redirect to external url if not the traffic will go to internal pool
the request will be app.domain.com/?id=p0000&d=11111
the datadgroup should contain id's (string : p0000 )
Example :
when HTTP_REQUEST {
if { [string tolower [HTTP::query] ] contains "DGLIST" }
{ HTTP::redirect "http://app.domain.com[HTTP::uri]" }
else
{ pool app_pool }
}
This is OK ?
Thanks for the help!