CodeIgniter Forums
Change the url - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Change the url (/showthread.php?tid=58259)



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]TheFuzzy0ne[/eluser]
I'm not quite sure what you mean. When you issue a 404 to a browser you redirect to /invalid_page? Why not just do it inline?

Code:
// If the page doesn't exist
show_404();