changeset 9:5db51091e291

Directory may turn file. Return 302 instead of 301.
author edogawaconan <me@myconan.net>
date Tue, 21 Oct 2014 21:50:20 +0900
parents ac946673f830
children 47a281c1d54e
files index.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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; }