On Tue, Feb 03, 2004 at 11:09:31AM -0500, Geoffrey Young wrote: > I don't see why you need to use either with internal_redirect() - just pass > it the URI and let Apache handle it. you would use a subrequest (initiated > from eather of the lookup functions) along with $sub->run() if you wanted to > send the contents of the subrequest along. (For the archives since It might be useful info.. them again maybe not.:-) Well, I was hoping this was the case however this is what happens.. [...] $sub = $r->lookup_file("randfile.html"); $filename = $sub->filename(); [...] $sub->internal_redirect($filename); $sub->run() and return 'OK';
if($sub->run ne 'OK') { $sub->log_error("Error running subrequest!"); } Just tried this and I get the usual file_not_found page.. Not Found The requested URL /var/www/htdocs/test/randfile.html was not found on this server. FYI: If one uses the internal_redir* with lookup_file() the above err is what occurs. If one uses the internal_redir* with lookup_uri() and the file exists one does get the page. So me thinks I am missing something obvious. Is it? thought train was that subrequests make Apache reload the page as if it was a completely new request. That way redirection would occur simularly to META tags redirection when set to "0" seconds. Well back to it. Best Regards, [EMAIL PROTECTED] -- Reporting bugs: 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