Forum Discussion
Thomas_Uczekaj_
Nimbostratus
Jun 07, 2006Can you hide a URI change from client
Here is the sample Irule:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/"} {
HTTP::uri /stuff }
}
It does this:
client submits: http://host.testing.com
...
Deb_Allen_18
Jun 08, 2006Historic F5 Account
If you are re-writing the URI inbound, and wish to hide the change from the client, no changes to the HTTP response should be necessary.
If instead you want to re-write all the links on the page in HTTP_RESPONSE, exposing the new hostname and URI to the client on subsequent requests, you can use regsub & HTTP::payload replace against the response. (See the 2nd example on the HTTP::payload wiki page here: Click here)
HTH
/deb
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