Change the url - 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: Change the url (/showthread.php?tid=58258) |
Change the url - El Forum - 05-28-2013 [eluser]boytun[/eluser] Hello So I want know can I change my url text? EX: localhost/invalid_page ------->to-------->localhost/404 Thanks in advance Change the url - El Forum - 05-28-2013 [eluser]Unknown[/eluser] Yes, you can use new format to describe invalid page. Change the url - El Forum - 05-28-2013 [eluser]boytun[/eluser] I whant knwo how? Change the url - El Forum - 05-28-2013 [eluser]CroNiX[/eluser] You can do it using routes. Code: $route['404'] = 'your_controller/your_404_method'; Change the url - El Forum - 05-29-2013 [eluser]boytun[/eluser] thanks a lot |