Jump to content

500 Error


The Little Guy

Recommended Posts

I don't know if it is just what Im doing, or this doesn't work:

 

.htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]
ErrorDocument 500 errors/500.php

 

php (errors/500.php):

<?php
header("Location: ".$_SERVER['HTTP_REFERER']);
exit;
?>

 

any ways, when I go to the error page, all that happens, is that it writes this to the page: errors/500.php

Link to comment
https://forums.phpfreaks.com/topic/58610-500-error/#findComment-290734
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.