http domain redirect
Hi Guys, new to irules so need your help on how to re-write the irule to include more descriptive strings. 1: We have a simple http redirect rule that we are using that utilizes datagroup strings:
when HTTP_REQUEST { set redirect_domain [class match -value [string tolower [HTTP::host]] equals redirect_domain] if {$redirect_domain ne ""} { HTTP::redirect "http://$redirect_domain" } unset redirect_domain }
It works fine if we need only one redirect per domain, but the minute I have a more global redirect I cannot utilize more descriptive ones from that same domain: Example:
If I have a working: domain1.de redirect to domain.com/de-de And I want to create a new one: domain1.de/careers redirect to domain.com/de-de/careers or to any other url… it doesn’t work making the domain1.de more inclusive string hit it first. Is there any way to make sure we can do more than a single “global” redirect per rule as it is kinda binds us to waste a whole domain for a single redirect….