perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxime Zakharov <max...@sochi.net.ru>
Subject Re: redirecting
Date Sat, 15 Apr 2006 13:46:33 GMT
Octavian Rasnita wrote:
> Is the following code correct?
> 
> $r->headers_out->set(Location => '/ss');
> 
> I have seen that if the "http://" and the host name is not given, Internet
> Explorer displays the page correctly, but I don't know if this will work
> with all the browsers.
> 
> If you know more, please point me to some pages that talk about the
> differences between an internal and an external redirect.

You may also set redirect status code using
$r->status(REDIRECT);
before
$r->send_http_header;

-- 
http://www.maxime.net.ru/  http://sochi.org.ru/


Mime
View raw message