diff --git a/.router.php b/.router.php index 723801a273..e5bac226f5 100644 --- a/.router.php +++ b/.router.php @@ -3,10 +3,12 @@ $filename = $_SERVER["PATH_INFO"] ?? $_SERVER["SCRIPT_NAME"]; -if (file_exists($_SERVER["DOCUMENT_ROOT"] . $filename)) { - /* This could be an image or whatever, so don't try to compress it */ - ini_set("zlib.output_compression", 0); - return false; +if (!file_exists($_SERVER["DOCUMENT_ROOT"] . $filename)) { + require_once __DIR__ . '/error.php'; + + return; } -include_once "error.php"; +/* This could be an image or whatever, so don't try to compress it */ +ini_set("zlib.output_compression", 0); +return null;