You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why not ignore $_SERVER['SCRIPT_NAME'] if its part of the URI being dispatched?
so that /index.php/ and / are the same
incase your frontend controller is frontend.php so /frontend.php/ and / are the same also
Line 87:
// if SCRIPT_NAME is part of the REQUEST_URI, remove it from $uri since we ignore itif ($_SERVER['SCRIPT_NAME'] == substr($_SERVER['REQUEST_URI'], 0, strlen($_SERVER['SCRIPT_NAME']))) {
$uri = substr($_SERVER['REQUEST_URI'], strlen($_SERVER['SCRIPT_NAME']));
}
The text was updated successfully, but these errors were encountered:
// if SCRIPT_NAME is part of the REQUEST_URI, remove it from $uri since we ignore itif ($_SERVER['SCRIPT_NAME'] == substr($_SERVER['REQUEST_URI'], 0, strlen($_SERVER['SCRIPT_NAME']))) {
$dispatchUri = substr($_SERVER['REQUEST_URI'], strlen($_SERVER['SCRIPT_NAME']));
} else {
$dispatchUri = $_SERVER['REQUEST_URI'];
}
dispatch($dispatchUri);
Why not ignore $_SERVER['SCRIPT_NAME'] if its part of the URI being dispatched?
so that /index.php/ and / are the same
incase your frontend controller is frontend.php so /frontend.php/ and / are the same also
Line 87:
The text was updated successfully, but these errors were encountered: