CodeIgniter Forums

Full Version: Disable a link possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to disable a link and route. Is it possible? i.e
PHP Code:
$route['test/admin'] = 'admin' now going to, this is ok. But still link is working.

What i have need that disable the link so that no one can access through this link
I also need this functionality. But an addition that I want to achieve:
if i have a controller with name admin and I call the index method via domain/admin, but I want to disable url requests by domain/admin/index
How can I do that?

PHP Code:
$route['test/admin'] = 'admin' // go to controller admin via 
$route['admin'] = 'anythingYouWant' // if it leads to 

anythingYouWant can be a 404 page