Forum Discussion
Spence_Faschin1
Nimbostratus
Mar 15, 2005Rewrite a uri (not redirect)
I have a need to rewrite a uri, and make this look transparent to the end user. What I have come up with is this:
when HTTP_REQUEST {
set loop 0
set max [llength $::shortur...
Spence_Faschin1
Nimbostratus
Mar 16, 2005I did a little more testing - works great if the uri is equal to something in the data group. In my case - if the uri starts with something in the data group, I want to rewrite that portion of the uri, example:
http://www.somesite.com/uri/index.html
would become
http://www.somesite.com/rewrite/uri/index.html
I always to need to preserve and pass the "end" of the uri, if the beginning matches something in the data group.
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
