Controller to call instead of error 404 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Controller to call instead of error 404 (/showthread.php?tid=35013) |
Controller to call instead of error 404 - El Forum - 10-16-2010 [eluser]Unknown[/eluser] Is there a way to call a specific controller when the user visit a non existing link? E.g. If I call http://www.mydomain.net/foo and the controller "foo" doesn't exist (and there is no re-routing for "foo"), I would like to be redirected to something http://www.mydomain.net/main Thank you, Erik |