Hello,
I’m currently migrating a website from CI 3 to CI 4.
The original developer didn’t follow good naming conventions, so every page has a c_ prefix with inconsistent casing.
I’ve created all routes in lowercase, but for legacy reasons, they need to be case-insensitive.
After some research, I found that CI is case-sensitive by default. However, this can be changed by modifying the checkRoutes method in system/Router/Router.php, setting both $uri and $routeKey to lowercase after the if (str_contains($routeKey, '{locale}')) condition.
Since I don’t want to modify the internal CI codebase due to using Composer and for update reasons, I’m looking for alternative solutions to achieve this.