Forum Discussion

Chris_Chaloux_1's avatar
Chris_Chaloux_1
Icon for Nimbostratus rankNimbostratus
Apr 16, 2009

Modify URI on redirect

Is it possible to set the final URI of a request when using an HTTP::redirect?

 

 

I'd like requests that come into http://example.com to be redirected to a page on a back end server. The redirect is working fine but the URI is obviously that of the resource the request was forwarded to. Is there a way to mask or change the end result URI so it appears as though the redirect is "behind the scenes"?

 

 

Thanks!!

 

Chris

1 Reply

  • Hi Chris,

     

     

    You can use HTTP::uri "/new_uri" (Click here) to rewrite the URI before the request is sent to the pool. This should be transparent to the client assuming the web application doesn't use the requested URI to generate response headers/content.

     

     

    Aaron