CodeIgniter Forums

Full Version: Improve routes by no need to add anyting after /
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When we do routing like:

$route['admin/login'] = 'Admin';

will work by accessing


But something like:

$route['admin/'] = 'Admin';

Then accessing by


Will show error404.

When we do

$route['admin'] = 'Admin';

We got what we want, we can access by


But not exactly.

Cuz we can access it too by 


(without slash)

And we don't want it.

It would be great to just make route that allows only access by


and nothing else, no without slash or something else