[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 404 error


On 8/31/06, Matias Alejo Garcia <suppressed> wrote:
We have a problem generating a custom 404 error page using mod_perl.
When a page is not found, the code sucessfull renders our error page, and send it to the client.
The HTTP code is also sucessfully set to 404. However, at the end of our page, apache adds it default 404 error page:
  Not found
  The requeste page was not found at the server ...

We are using a modperl handler, which, in this case, returns
Apache2::Const::NOT_FOUND to apache; after sending our page using $r->print(xx);
| Is it posible to stop apache adding it's default page to ours?


We have fix the problem always returning Apache2::Const::OK, and previously issuing $r->status(Apache2::Const::NOT_FOUND);

thanks!

matías

 



--
http://confronte.com
Compará y comprá mejor

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.