From 7a90f9e54e1d029e62752f48fb5c0098353aa4ca Mon Sep 17 00:00:00 2001 From: Tom Lake <tswsl1989@sucs.org> Date: Wed, 28 Aug 2013 09:32:36 +0000 Subject: [PATCH] Return 404 error for pages that don't exist --- htdocs/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/index.php b/htdocs/index.php index 45bcb2b..73b6cf4 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -147,6 +147,7 @@ if (file_exists($comppath)) { $compoutput = ob_get_contents(); ob_end_clean(); } else { + header("HTTP/1.1 404 Not Found"); $smarty->assign("body", "Component ".$component['component']." not found"); } -- GitLab