diff --git a/public_html/modules/home.php b/public_html/modules/home.php new file mode 100644 index 0000000..cfcaea1 --- /dev/null +++ b/public_html/modules/home.php @@ -0,0 +1,16 @@ +allow_slash = true; $router->routes = array( 0 => array( + "^/$" => "modules/home.php", "^/list$" => "modules/list.php", "^/register$" => "modules/register.php", "^/login$" => "modules/login.php", @@ -36,4 +37,12 @@ $router->routes = array( ) ); -$router->RouteRequest(); +try +{ + $router->RouteRequest(); +} +catch (RouterException $e) +{ + http_status_code(404); + die("404 Not Found. Click here to continue to todo.cryto.net, the todo list for overworked hackers (and everyone else)."); +}