Skip to content

Commit 704933f

Browse files
authored
Added 'REDIRECT_URL' to URL_PARSE option
1 parent 0e64854 commit 704933f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
/*
8585
|--------------------------------------------------------------------------
86-
| Set URL_PARSE Method as either 'REQUEST_URI' or 'PATH_INFO'.
86+
| Set URL_PARSE Method as 'REQUEST_URI', 'REDIRECT_URL' or 'PATH_INFO'.
8787
| When using Nginx server, 'REQUEST_URI' is recommended.
8888
| SUB_DIR as the number of subfolders index.php is located from domain.
8989
|--------------------------------------------------------------------------
@@ -92,17 +92,17 @@
9292
|
9393
*/
9494

95-
define('URL_PARSE', 'REQUEST_URI');
95+
define('URL_PARSE', 'REDIRECT_URL');
9696

9797
if (URL_PARSE == 'PATH_INFO') {
9898
define('SUB_DIR', 0);
99-
} elseif (URL_PARSE == 'REQUEST_URI') {
99+
} elseif (URL_PARSE == 'REQUEST_URI' || 'REDIRECT_URL') {
100100
define('SUB_DIR', substr_count($_SERVER['SCRIPT_NAME'], '/')-1);
101101
}
102102

103103
/*
104104
|--------------------------------------------------------------------------
105-
| Set Homepage
105+
| Set Homepage Controller@method
106106
|--------------------------------------------------------------------------
107107
*/
108108

0 commit comments

Comments
 (0)