Forum Discussion

Gill_32697's avatar
Gill_32697
Icon for Nimbostratus rankNimbostratus
Feb 01, 2017

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 } }

 

1 Reply

  • Hi, could you put it again with preformatted code (ctrl+k) I had tried to rewrite this, but it is too much disfigured and I'm in doubt where to suggest corrections.

     

    Regards