Skip to content

Commit e891d69

Browse files
committed
add: set up "scrpit_name" to handle every request by index.php file.
1 parent 1bfe531 commit e891d69

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

system/Commands/Server/rewrite.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
$uri = urldecode(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
2828

29+
// All request handle by index.php file.
30+
$_SERVER["SCRIPT_NAME"] = 'index.php';
31+
2932
// Front Controller path - expected to be in the default folder
3033
$fcpath = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR;
3134

0 commit comments

Comments
 (0)