Forum Discussion
4 Replies
Sort By
- Hannes_Rapp_162Nacreous
when 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_162NacreousThe 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).
- Hannes_RappNimbostratus
when 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_RappNimbostratusThe 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).