Improve routes by no need to add anyting after / - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Improve routes by no need to add anyting after / (/showthread.php?tid=68289) |
Improve routes by no need to add anyting after / - krystian2160 - 06-20-2017 When we do routing like: $route['admin/login'] = 'Admin'; will work by accessing http://url/admin/login But something like: $route['admin/'] = 'Admin'; Then accessing by http://url/admin/ Will show error404. When we do $route['admin'] = 'Admin'; We got what we want, we can access by http://url/admin/ But not exactly. Cuz we can access it too by http://url/admin (without slash) And we don't want it. It would be great to just make route that allows only access by http://url/admin/ and nothing else, no without slash or something else |