home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Perl CookbookPerl CookbookSearch this book

21.4. Redirecting the Browser

21.4.2. Solution

Use $r->header_out to set the Location header, then return REDIRECT:

$r->header_out(Location => "http://www.example.com/somewhere");
return REDIRECT;

21.4.4. See Also

Writing Apache Modules with Perl and C; Recipe 19.7; Recipe 8.5 in mod_perl Developer's Cookbook; the Apache.pm manpage



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.