diff --git a/php/controller/deleteAccount-controller.php b/php/controller/deleteAccount-controller.php index 8d42198..1252fa2 100644 --- a/php/controller/deleteAccount-controller.php +++ b/php/controller/deleteAccount-controller.php @@ -18,13 +18,13 @@ try { $_SESSION = []; session_destroy(); - header("Location: index.php"); + header("Location: ../../index.php"); exit(); } catch (Exception $e) { $_SESSION["message"] = "internal_error"; - header("Location: index.php?pfad=profile"); + header("Location: ../../index.php?pfad=profile"); exit(); } \ No newline at end of file diff --git a/php/controller/deleteArticle-controller.php b/php/controller/deleteArticle-controller.php index 27858d4..a8cda7f 100644 --- a/php/controller/deleteArticle-controller.php +++ b/php/controller/deleteArticle-controller.php @@ -13,7 +13,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $_SESSION = []; session_destroy(); - header("Location: index.php"); + header("Location: ../../index.php"); exit(); } diff --git a/php/controller/logout-controller.php b/php/controller/logout-controller.php index 49386ab..d88a634 100644 --- a/php/controller/logout-controller.php +++ b/php/controller/logout-controller.php @@ -2,5 +2,5 @@ $_SESSION = []; session_destroy(); -header("Location: index.php"); +header("Location: ../../index.php"); exit(); \ No newline at end of file