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. Quote 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 Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/228197-errordocument-problem/#findComment-1177579 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.