Order Page / 404 Issue - 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: Order Page / 404 Issue (/showthread.php?tid=66132) |
Order Page / 404 Issue - flaboi - 09-10-2016 Ok so this issue just occured for me, if I visit mydomain.com/myorders I will see a default CI 404 error, but when someone logs in and visits that page they will see no errors and the page works. The way I would like it to work is when a user logs in they are redirected to that page and if a guest tries to access that page it will redirect them to mydomain.com/login. This is what is inside my UserController file: Code: /** Code: /** The repair function is no longer working so should I just remove that line for repair? RE: Order Page / 404 Issue - Wouter60 - 09-11-2016 Replace PHP Code: show_404(); with PHP Code: redirect('login'); RE: Order Page / 404 Issue - flaboi - 09-11-2016 Thanks, that worked perfectly! |