hello all, what I want to do, is to send a custom error-document from a modperl-registry script to the user while 404 error status is issued.
example: a script called /path/to/test.pl is accessed by a client using a parameter such as /path/to/test.pl?invalidparameter=1 In this case, I want to send 404 so that search engines and others won't index the page, however, if there's a human user, he should see a custom error message. I managed this in modperl 1.0 before by sending HTTP/1.0 404 Not Found Content-Type: text/html <html> my custom error page </html> In modperl 2.0 I so far only succeded in doing: my $r=shift; $r->status(404); which delivers the default "Not found" page, but is there any way to send a custom page instead (without using ErrorDocument in httpd.conf). Any help is appreciated, Thank you, -- Mit freundlichem Gruß Henrik Steffen Geschäftsführer top concepts Internetmarketing GmbH Am Steinkamp 7 - D-21684 Stade - Germany -------------------------------------------------------- http://www.topconcepts.de Tel. +49 1805 9977 501* mail: [EMAIL PROTECTED] Fax. +49 1805 9977 502* -------------------------------------------------------- SMS Versand ab 9.9 Cent: http://sms-gw.topconcepts.de -------------------------------------------------------- Handelsregister: AG Stade HRB 5811 - UstId: DE 213645563 -------------------------------------------------------- *) EUR 0,12/Min. (CNS24) -- 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