Hi All,
I am using mod_perl's PerlTransHandler for manipulating the request URI.
And forwarding the manipulated URI. I am getting the desired result page in the 
response, but the browser url does not change to the redirected page. But if I 
do a request redirect after manipulating the URI, the chagned uri does show up 
in the browser. Is there any way I would manipulate the URI, get the response 
with the manipulated URI, change the browser URL without actually redirecting 
the request.

This is the code that I am using:
                        $r->uri($new_uri);
                        $r->headers_out->add('Location' => ($new_uri)); 
                        
                        return Apache2::Const::REDIRECT;

This solves the purpose.

But I want to use something similar to below (this shows the page but the 
browser URL shows the old uri and not the manipulated):
                        $r->uri($new_uri);
                        $r->headers_out->add('Location' => ($new_uri)); 
                        
                        return Apache2::Const::REDIRECT;


Any inputs are appreciated.

Thanks,
Nitin

Reply via email to