Forum Discussion
Veerender_Yadav
Nimbostratus
Jun 09, 2015source should not change after redirecting
greetings
I have two domain's where source domain is redirected to destination domain and same visible on the web page when customer access. Here my request is redirection should take place but...
Hannes_Rapp
Nimbostratus
Jun 09, 2015when HTTP_REQUEST {
if {[string tolower[HTTP::path]] starts_with "/client-visible-path"}
Overwrite HTTP path value, before routing the request to end-server.
e.g mydomain1.com/client-visible-path/?login=true is overwritten to mydomain1.com/overwritten-path/?login=true
HTTP::path "/overwritten-path"
}
}
Hannes_Rapp
Nimbostratus
Jun 09, 2015The method above is called "silent rewrite" which occurs after the client-side TCP connection is terminated, and before the request is routed to end-server via the server-side TCP connection. You can not invoke a redirect without making the new location visible to your client. For this solution to work for you, the new location should ideally be an applet that does not contain any HTML links (referring to original HTTP Path value).
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