File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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|--------------------------------------------------------------------------
9292|
9393*/
9494
95- define ('URL_PARSE ' , 'REQUEST_URI ' );
95+ define ('URL_PARSE ' , 'REDIRECT_URL ' );
9696
9797if (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
You can’t perform that action at this time.
0 commit comments