diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..82d26b5 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / +Sitemap: https://servermanager.devlab.lat/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..6fcb731 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,23 @@ + + + + https://servermanager.devlab.lat/ + weekly + 1.0 + + + https://servermanager.devlab.lat/login + monthly + 0.3 + + + https://servermanager.devlab.lat/privacy + monthly + 0.5 + + + https://servermanager.devlab.lat/terms + monthly + 0.5 + + diff --git a/src/Controllers/DashboardController.php b/src/Controllers/DashboardController.php index 08923d6..5cea4b1 100755 --- a/src/Controllers/DashboardController.php +++ b/src/Controllers/DashboardController.php @@ -43,6 +43,7 @@ class DashboardController $this->view->setLayout('auth')->display('pages.landing', [ 'title' => 'ServerManager - Linux Server Management Platform', + 'description' => 'ServerManager — Free and open-source Linux server management platform. Monitor server metrics, execute commands via web terminal, and receive push notifications on your phone.', 'stats' => $stats, ]); } diff --git a/views/layouts/auth.php b/views/layouts/auth.php index 9b92c52..b7f26ee 100755 --- a/views/layouts/auth.php +++ b/views/layouts/auth.php @@ -4,6 +4,13 @@ <?= htmlspecialchars($title ?? 'ServerManager') ?> + + + + + + + diff --git a/views/layouts/main.php b/views/layouts/main.php index c432c0e..9876857 100755 --- a/views/layouts/main.php +++ b/views/layouts/main.php @@ -3,9 +3,11 @@ $notifications = $notifications ?? []; $unreadCount = $unreadCount ?? 0; $teamId = $teamId ?? null; $title = $title ?? 'ServerManager'; +$description = $description ?? 'ServerManager — Linux server management platform. Monitor, manage, and control your servers from anywhere with real-time metrics, web terminal, and push notifications.'; $content = $content ?? ''; $currentRoute = $_SERVER['REQUEST_URI'] ?? '/'; +$canonicalUrl = ($_ENV['APP_URL'] ?? 'https://sysadmin.lan') . $currentRoute; if (!isset($user) || $user === null) { $user = auth(); @@ -17,8 +19,47 @@ if (!isset($user) || $user === null) { <?= htmlspecialchars($title) ?> — ServerManager + + + + + + + + + + + + + + + + + + + + + + +