# HG changeset patch # User edogawaconan # Date 1413895597 -32400 # Node ID c4046c7e1f5a79f6a8e6ad024f77d17dec8d5095 # Parent 8df269a2efd8a8841ea84be57a99aaa979c31bda Missing one part when removing current_dir. diff -r 8df269a2efd8 -r c4046c7e1f5a index.php --- a/index.php Tue Oct 21 21:44:36 2014 +0900 +++ b/index.php Tue Oct 21 21:46:37 2014 +0900 @@ -22,7 +22,7 @@ if (realpath($root . $path) === false) { header("HTTP/1.0 404 Not Found"); - } elseif (substr($current_dir, -1) !== "/") { + } elseif (substr($path, -1) !== "/") { header("Location: " . $path . "/", false, 301); }