Forum Discussion
TC__Wolsey_1123
Nimbostratus
Jul 11, 2005Compound expression argument to redirect?
I am having a problem passing a compound expression to 'redirect to' ie:
if (http_uri starts_with "/this") {
redirect to "http://server.name/that + getfield(http_uri, '?', 2)" ...
Martin_Machacek
Jul 16, 2005Historic F5 Account
The corect syntax is:
if (http_uri starts_with "/this") {
redirect to "http://server.name/that" + getfield(http_uri, '?', 2)
}Note that there are no quotes around the call to getfield.
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