Forum Discussion
Joe_Pipitone
Jun 08, 2011Nimbostratus
Rewriting only part of the URI
I have a request to rewrite only a certain part of our URI, while still passing the last part of the URI. I need to be able to catch all requests and rewrite just part of the URI. I have a ...
JRahm
Jun 08, 2011Admin
So with something static like /newsletters/ beginning your URI, you could do a string range (in tlcsh):
set x "/newsletters/Directory2/something/else/entirely/file.txt"
puts "/newsletters/Directory3[string range $x [string first / $x 13] end]"
/newsletters/Directory3/something/else/entirely/file.txt
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