CodeIgniter 2.x 404 error routing -
does new 404 error functionality in codeigniter 2.x send 404 error server can tracked analytics? or need in controller? little further digging , found answer @ bottom of page:
if you're talking $route['404_override']
page, not send proper 404 status code itself. filed bug report this.
the fix in forum post seems perfect, making sure set header manually via $this->output->set_status_header('404');
in whichever method define default 404. problem can think of if want 404's load home page or something.
there issue well, valid controllers invalid methods show default error page instead of custom one. can see reports of on issue tracker.
hopefully correct in future releases, , make setting header automatic.
Comments
Post a Comment