Net_Admin_86160
Sep 10, 2013Nimbostratus
Doing redirects using datagroups
Hello,
I am trying to do redirects using datagroups and getting stuck with the actual redirect using -value I have a data group called prod_domains_dg mydomain.ny1.com:=mydomain.ny1.com/1nyb mydomain.ny2.com:=mydomain.ny2.com/2nyb
I am trying to do the following
- if someone enter just https://mydomain.ny1.com then redirect to mydomain.ny1.com/1nyb and send to prod_pool
- if somecome comes with a complete link https://mydomain.ny1.com/1nyb/Status.jsp send to a prod_pool.
elseif {[class match [string tolower [HTTP::host]] contains Prod_Domains_dg ]}{ use pool Prod_pool }
this works for 2. so the domain groups is accessable and working but for 1 i am not able to replace "/" with {[class match -value [string tolower [HTTP::host]] starts_with Prod_Domains_dg ]
Any help in resolving this is appeciated. thanks