Forum Discussion
Festus_50639
Nimbostratus
Oct 29, 2008legal comparison operator syntax
Good morning all,
I seem to have found a logic error and my first step is to rule out or confirm that my iRule is at fault.
Here is the iRule as it was used when ...
hoolio
Cirrostratus
Oct 30, 2008Forgot to add... you can replace this:
if { [HTTP::uri] contains "?" } {
HTTP::redirect "http://host.domain/site/default.aspx?[lindex [split [HTTP::uri] "?"] 1]"
} else {
HTTP::redirect "http://host.domain/site/default.aspx" }
}
With this:
HTTP::redirect "http://host.domain/site/default.aspx?[HTTP::query]"
The only difference is that if the original request didn't have a query string, the redirect location will have a trailing ?. This shouldn't have any effect on the application though.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
