fry2010 Posted February 19, 2011 Share Posted February 19, 2011 I have a problem with getting a file called '500.php' to display the contents of what is in the file. Here is my .htacces code: ErrorDocument 500 500.php The output when I go to a page in my site that gives a 500 error is: 500.php It is basically outputting the file name, rather than the contents of the file. Link to comment https://forums.phpfreaks.com/topic/228197-errordocument-problem/ Share on other sites More sharing options...
Hybride Posted February 20, 2011 Share Posted February 20, 2011 There should be a / before the 500.php, so ErrorDocument 500 /500.php Link to comment https://forums.phpfreaks.com/topic/228197-errordocument-problem/#findComment-1177326 Share on other sites More sharing options...
fry2010 Posted February 21, 2011 Author Share Posted February 21, 2011 Thanks, but I tried that but it does not work. It gives an internal server error, even though I have located the file in all directories. It seems that it is finding the document but not displaying the contents. Any other thoughts? Link to comment https://forums.phpfreaks.com/topic/228197-errordocument-problem/#findComment-1177579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.