From 261f61b33c73ad937beaa297afd6246745d35839 Mon Sep 17 00:00:00 2001 From: SRR Site Date: Sat, 12 Oct 2024 10:10:57 +0000 Subject: [PATCH] Fix without path_info --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index b447db1..a6ebf69 100644 --- a/index.php +++ b/index.php @@ -39,6 +39,12 @@ else { $path_info=str_replace(PhangoApp\PhaRouter\Config::$base_url.'index.php', '', $_SERVER['REQUEST_URI']); + if($path_info==PhangoApp\PhaRouter\Config::$base_url) { + + $path_info=''; + + } + } echo \PhangoApp\PhaRouter\get_route($path_info);