Hi, I’ve got a .htaccess file, which displays the error pages on my server. The pages for errors like error 404 and 403 work, they occur when I type a non-existing URL or something. But my error500 page does not work. I made an error in my .php file, but when I open this file using Internet Explorer, the standard page pops up and not my home-made error500 page. Why doesn’t it show my error500 page and does it show the other error pages? Is it because apache at least tries to execute the page, instead of just telling me it doesn’t exist, or do I have to change more settings? I hope somebody recognices the problem, I couldn’t find it on the internet anywhere
at the very start of your test page and/or in your exception handler if you want this to happen.
(if you use it in an exception handler you’ll have to to clear any output thus far created as headers have to be at the very start of the output.)
Hi, thanks for the reply. Lynx confirms that my sabotaged page gives an error500, but I still don’t see my custom error page. I tried setting all the AllowOverride thingy’s to All but still it won’t show the page, just the standard error page. When I run lynx I get the following message: HTTP/1.0 500 Internal Server Error. When I type the url of any other page I says: HTTP/1.1 200 OK. Has it got something to do with the 1.1/1.0? I hope you can help,
Haha, thanks for checking anyway. I’ll continue my search and let you know if I find anything. If anybody else knows how to solve the problem, feel free to post the answer here