Forum Discussion
James_78615
Nimbostratus
Dec 16, 2009Rewrite client browser URL without redirect
Hi,
Is it possible to rewrite the URL that is shown in the client web browser without issuing a redirect?
The following is scenario I would like achieve:
-...
The_Bhattman
Nimbostratus
Dec 16, 2009I suppose you can do the following
when HTTP_REQUEST {
if {[HTTP::host] eq "www.example.com" } {
HTTP::header replace Host "www2.example.com"
}
}
This update will only affect the request to the pool member. The client will not see the update unless the web application uses the requested host header value to generate response headers and/or content.
Does that help?
Bhattman
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
