diff --git a/index.php b/index.php index 9a2905c..5d83d54 100644 --- a/index.php +++ b/index.php @@ -23,13 +23,21 @@ Error 404, arquivo não encontrado

"); + if (!file_exists($file)) { + http_response_code(404); + die("

Error 404, arquivo não encontrado

"); + } + } catch (Exception $e) { + $file = "componentes/inicio.php"; } require_once $file; ?>