public/index.html if ($path === '/') { $file = __DIR__ . '/public/index.html'; if (file_exists($file)) { header('Content-Type: text/html; charset=UTF-8'); readfile($file); return true; } } // Fallback an index.php require __DIR__ . '/index.php'; return true;