- Fixed bug in error.php

3-00
Dries Buytaert 2001-07-06 07:44:44 +00:00
parent 121b5425c2
commit 829d77df8e
1 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ $errors = array(500 => "500 error: internal server error",
watchdog("httpd", $errors[$REDIRECT_STATUS]);
header("Location: index.php");
if (strstr($REDIRECT_URL, "index.php")) {
header("Location: ../index.php");
}
else {
header("Location: index.php");
}
?>