Forum Discussion
Steve_Hellams_1
Nimbostratus
Jun 23, 2006Trying to Redirect Outside URI to INSIDE URI
Please Help!
I am trying to re-direct a URI to a different URI on the inside Host
Inside host: 1.2.3.4 on Port 7800
with a URI of /SEH/SEHPROXY
Outside Request: ...
scott_j_111129
Nimbostratus
Jun 23, 2006Hi Steve,
If you are simply trying to substitute /SEH with /SEH/SEHPROXY, you might consider this
If the URI starts with the the string /SEH
if {[HTTP::uri] starts_with "/SEH"}{
strip off the first 5 characters, then replace with /SEH/SEHPROXY/
set workingUri [substr [HTTP::uri] 5]
HTTP::uri "/SEH/SEHPROXY/$workingUri"
pool INSIDEHOST1
}
Also, please note that I used "starts_with" instead of "contains" to avoid unintented side-effects.
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