Forum Discussion

mika's avatar
Icon for Cirrus rankCirrus
Nov 30, 2020

Redirection with datagroup and irule

Hello teams, Need helps!! I want to redirect a host in terms of path example: to, to, to ....... For this...
  • Enes_Afsin_Al's avatar
    Dec 01, 2020

    Hi mika,

    If datagroup values contain upper case, replace them. iRule:

    when HTTP_REQUEST {
    	if { [class match [string tolower [HTTP::uri]] equals dg-name] } {
    		HTTP::redirect ""

    You can use starts_with instead of equals according to your needs.