Handle 404s

develop
Sven Slootweg 11 years ago
parent f224d3a243
commit d03feff8c5

@ -37,4 +37,12 @@ $router->routes = array(
)
);
$router->RouteRequest();
try
{
$router->RouteRequest();
}
catch (RouterException $e)
{
http_status_code(404);
die("404 Not Found. Click <a href='/'>here</a> to continue to todo.cryto.net, the todo list for overworked hackers (and everyone else).");
}

Loading…
Cancel
Save