# HG changeset patch # User edogawaconan # Date 1413895820 -32400 # Node ID 5db51091e2912fbc6004592c316e944b51680099 # Parent ac946673f830ebe7b89db542bac26242caf6c097 Directory may turn file. Return 302 instead of 301. diff -r ac946673f830 -r 5db51091e291 index.php --- a/index.php Tue Oct 21 21:48:54 2014 +0900 +++ b/index.php Tue Oct 21 21:50:20 2014 +0900 @@ -23,7 +23,7 @@ if (realpath($root . $path) === false) { header("HTTP/1.0 404 Not Found"); } elseif (substr($path, -1) !== "/") { - header("Location: " . $path . "/", false, 301); + header("Location: " . $path . "/"); } if (http_response_code() !== 200) { exit; }