allow_slash = true; $router->ignore_query = true; $router->routes = array( 0 => array( "^/$" => "modules/ui/index.php", "^/api/search$" => "modules/api/search.php", "^/api/dump$" => "modules/api/dump.php" ) ); $router->RouteRequest(); echo($sPageContents); /* $data = array(); foreach(Topic::CreateFromQuery("SELECT * FROM topics WHERE `ParentId` = 0") as $topic) { $data[] = $topic->AsDataset(); } echo(json_encode($data)); * */