• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improve routes by no need to add anyting after /

#1
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
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.