Forum Discussion
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
- cjunior
Nacreous
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com