Handling HTTP Errors
-
Hi, In ASP.NET, the best way to manage http errors e.g: Error 400.x, 500.x is to specify this in the web.config or globax.asax file. How do I accomplish the same in php, because I was to get a nicely formatted error page displayed to my users instead of the anoying apache error page. Please help!
-
Hi, In ASP.NET, the best way to manage http errors e.g: Error 400.x, 500.x is to specify this in the web.config or globax.asax file. How do I accomplish the same in php, because I was to get a nicely formatted error page displayed to my users instead of the anoying apache error page. Please help!
You can configure your Apache server to display custom error pages using the ErrorDocument directive: http://httpd.apache.org/docs/2.2/mod/core.html#errordocument[^]