diff --git a/config/prod/settings.php b/config/prod/settings.php index 57ada2e..b81594c 100644 --- a/config/prod/settings.php +++ b/config/prod/settings.php @@ -8,6 +8,10 @@ if (!defined('APP_DEBUG')) { define('APP_DEBUG', false); // Debug in Prod aus } + // Robots: Prod indexierbar + if (!defined('APP_ROBOTS')) { + define('APP_ROBOTS', 'index,follow'); + } // Crypto-Key für verschlüsselte Felder (Telefon, Kinder etc.) // Bitte in Staging per Hosting-ENV setzen; dieses putenv dient nur als Fallback/Beispiel. diff --git a/config/staging/settings.php b/config/staging/settings.php index e2be15e..90e4b9f 100644 --- a/config/staging/settings.php +++ b/config/staging/settings.php @@ -8,6 +8,10 @@ if (!defined('APP_DEBUG')) { define('APP_DEBUG', true); // Debug in Staging } + // Robots: Staging niemals indexieren + if (!defined('APP_ROBOTS')) { + define('APP_ROBOTS', 'noindex,nofollow'); + } // Crypto-Key für verschlüsselte Felder (Telefon, Kinder etc.) // Bitte in Staging per Hosting-ENV setzen; dieses putenv dient nur als Fallback/Beispiel. diff --git a/partials/structure/layout_start.php b/partials/structure/layout_start.php index 439f8f3..cb69734 100644 --- a/partials/structure/layout_start.php +++ b/partials/structure/layout_start.php @@ -34,6 +34,9 @@ if ($debugEnabled) {