Forum Discussion
Joe_Pipitone
May 12, 2014Nimbostratus
Portion of iRule not being processed
I have combined multiple iRules into one, however the 2nd portion of the rule is not working. I have confirmed using logging that the URI is being caught, however redirection is not taking place. I...
Joe_Pipitone
Nimbostratus
This is incredibly confusing - if I change the switch statement to look like the below - going to this URI with a capital C works....however, now going to this uri with a lowercase c breaks. It used to be the other way around. Something is funky as far as the case.
"c=*" {
log local0. "Query string of URI [HTTP::uri] is [URI::query [HTTP::uri]]"
HTTP::redirect "http://newforum.newdomain.com/default.aspx?g=forum&c=[URI::query [HTTP::uri] C]"
return
}
Cory_50405
May 27, 2014Noctilucent
It seems like the server would have to be doing the unexpected redirection. I see no other way you'd get redirected to http://newforum.newdomain.com/default.aspx?g=info&i=4 as that's not one of the targets from your iRule. The application sounds like it's behaving unexpectedly (or not) based on the query string.
Just out of curiosity, can you post your iRule that works with if{} statements?
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects