adding new elseif in front of current elseif
Need help adding new elseif onto irule. This iRule was working but I need to insert a new elseif in the beginning uri starts with payments. I have a bracket error but cant find it. ! when HTTP_REQUEST { if {[string tolower [HTTP::host]] eq "mysite.com" } { HTTP::redirect "https://www.mysite.com[HTTP::uri]" } elseif { [string tolower [HTTP::uri]]) starts_with "/payments/" } { switch -glob -- [string tolower [HTTP::uri]] { HTTP::redirect "; } elseif { ([string tolower [HTTP::host]]) contains "mysite.com" } { switch -glob -- [string tolower [HTTP::uri]] { "paythisnoakc" { pool IIS_EZPay_pool } "/holtcat" { HTTP::redirect "https://focus.mysite.com/fnFProvider/fnFProvider.asp? app=HCEnrollmentTool&wanted=BECONFIRM&BenefitYear=2011&BenefitType=N" } "/autodisc/autodisc.xml" { HTTP::redirect "; }
"/corpsite" HTTP::redirect "; } "/lmakcel/" { pool IIS_EZ_FNet } /lmakcell" - "/clrefundquote" { pool IIS_mysite_pool } default { pool big_DNpool_Pool } }