Forum Discussion
ant8344_5401
Nimbostratus
May 04, 2006http redirect rule while preserving the whole URI
Hello,
I have done simple redirects before but have never come across this request (which stumped me).
For instance, we have a redirect from http://www.cnn.com/abc going to http://...
Bobby_Glidwell_
Nimbostratus
Jun 22, 2006I have a very similar situation and would like to apply a similar fix. However, when I attempt to use a "+" to concantenate strings together, I get an "Error 331835 -- Rule string to tree failed. - syntax error at '+'".
The exact rule is:
if (http_uri starts_with "/hlc/" and not (http_uri contains ".")) {
log "Good HIT"
redirect to "http://" + http_host + "/hlc/home.aspx?" + getfield(http_uri, "/" ,2)
}
Running 4.5PFT-03
Does 4.5 not support string contatenation using the "+"?
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