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:

http://codeigniter.com/forums/viewthread/164957/#790005

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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -