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
...
Colin_Walker_12
Jun 16, 2006Historic F5 Account
I don't believe uczekajt is looking for content re-writing, just URI re-writing from the client's perspective.
In which case you'd do something to the effect of:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/stuff"
}
}
when HTTP_RESPONSE {
if { [HTTP::header location] contains "/stuff" } {
set newLoc [string map {/stuff /} [HTTP::header location] ]
HTTP::header replace location "$newLoc"
}
}This would, of course, require re-writing each request and response.
Colin
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