Add 404 page

develop
Sven Slootweg 12 years ago
parent bfbfd821b5
commit 1503c1f75f

@ -17,7 +17,15 @@ $router->routes = array(
) )
); );
$router->RouteRequest(); try
{
$router->RouteRequest();
}
catch (RouterException $e)
{
http_status_code(404);
$sPageContents = "404 not found";
}
echo($sPageContents); echo($sPageContents);

Loading…
Cancel
Save