Disable a link possible? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Disable a link possible? (/showthread.php?tid=1447) |
Disable a link possible? - rejoan - 03-11-2015 Hi, I want to disable a link and route. Is it possible? i.e PHP Code: $route['test/admin'] = 'admin'; myproject.com/test/admin now going to myproject.com/admin, this is ok. But still myproject.com/admin link is working. What i have need that disable the link so that no one can access through this link myproject.com/admin RE: Disable a link possible? - bw.balazs - 03-11-2015 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? RE: Disable a link possible? - hedi - 03-13-2015 @rejoan PHP Code: $route['test/admin'] = 'admin'; // go to controller admin via myproject.com/test/admin anythingYouWant can be a 404 page |