Forum Discussion
Kenny_Koulabout
Nimbostratus
Dec 03, 2014Need help rewriting the middle of a URI
I am unsure of how to rewrite the middle of a uri.
What I am trying to accomplish is this:
www.company.com/common/images/sbox/common/images/sbox/any.jpg
and removing the repeating portion of th...
John_Alam_45640
Dec 04, 2014Historic F5 Account
How are you testing.
Try this and send the output from the log. (tail /var/log/ltm)
/common/images/sbox/common/images/sbox*" {
set new_uri [string range [HTTP::uri] 19 end]
log local0. "Old URI: [HTTP::uri]"
log local0. "New URI: $new_uri"
HTTP::redirect http://[HTTP::host]$new_uri
}
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