@jerad
By default, CodeIgniter treats the URI (Uniform Resource Identifier) as case sensitive. If you want to make the URI case insensitive, you can follow these steps:
1
|
$config['uri_protocol'] = 'QUERY_STRING'; |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?php class MY_Router extends CI_Router { function __construct() { parent::__construct(); } function _set_request($segments = array()) { $uri = implode('/', $segments); $uri = strtolower($uri); parent::_set_request($uri); } } |
With the above changes, CodeIgniter would now treat the URI as case insensitive. Keep in mind that this solution may have unintended consequences depending on your specific application requirements, so test thoroughly before deploying to a production environment.