From 7b0dc1fcb0b1be97dd0fea2fbf74a2f61a0d9b21 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 22 Feb 2024 19:17:16 +0100 Subject: [PATCH] introducing redirection component that will be deleted later --- includes/redirections.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 includes/redirections.php diff --git a/includes/redirections.php b/includes/redirections.php new file mode 100644 index 0000000..b54fbf8 --- /dev/null +++ b/includes/redirections.php @@ -0,0 +1,24 @@ +is_404 = false; + status_header(200); + + // header('Content-Type: text/html'); + // readfile($reactAppPath); + + include($reactAppPath); + } else { + // Gérer le cas où le fichier n'existe pas + echo "Page not found."; + status_header(404); + } + exit(); + } +});