CodeIgniter Forums
Commented routes still working - 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: Commented routes still working (/showthread.php?tid=79664)



Commented routes still working - rooye - 07-16-2021

Hello everyone,

I had routes that were working normally. Suddenly newly formed link [e.g. site_url('administrator/edit/page/' . $num)] loaded a mysite.com/admin/home page. Any page in site_url('administrator/edit/page/' . $num) openedĀ  mysite.com/admin/home page. Moreover, when I click on the link with the URI mysite.com/administrator/edit/page/3, it returns to mysite.com/admin/home page

I decided to comment first $route['admin/home'] in routes.php yet the page mysite.com/admin/home page still loads. I decided to comment/remove all admin routes yet some routes are still working as if not removed though some are showing 404 page. What could be responsible for such a strange problem


RE: Commented routes still working - rmcdahal - 07-16-2021

$routes->setAutoRoute(true);
To
$routes->setAutoRoute(false);
Will solve your problems i think.