Hi.
I want to redirect to some uri one page. This can be accomplished easily in
PerlTransHandler with $r-> uri($new_uri);
My problem is that this uri needs to be parsed again with the same module responsible 
of
that. This is, i have a web page parse by module X that has to redirect to another uri
that has to pass again by module X at the same PerlTransHandler phase.

So $r-> uri($new_uri); does not work because the new uri goes on after the
PerlTransHandler phase, and it's not valid for me.

I am trying to use the HTTP header Location:
$r->headers_out->{'Location'} = 'http://www.sport.es';
or
$r->err_headers_out->{'Location'} = 'http://www.sport.es';
(i think i have read the err_headers_out is the correct one).

And i return the DECLINED response, or the REDIRECT response.

None of this options has worked. What i am doing wrong? What i use in the past was a 
rude
javascript printed in the web page that redirected automatically to the url. Now i 
want to
use the modperl api to do it.

Any idea to do what i am asking for? Thanks.

Apache/2.0.48 (Win32) mod_perl/1.99_13-dev Perl/v5.8.2 Server at localhost Port 80
---------------------------------------------------------
Vuelve la quiniela. Ahora puedes jugar online y hacerte millonario 
http://sorteos.ya.com
Ya.com ADSL Router Wi-Fi: Sólo 29,90 €/mes + IVA*. Router + Antivirus y firewall 
ˇGratis! http://acceso.ya.com/adsl/256router

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to