Welcome Guest, Not a member yet? Register   Sign In
$route['404_override'] not sending 301 status code with redirection to custom error page
#2

[eluser]Flemming[/eluser]
I realise this is an old thread but thought I would post my answer in case anyone else is still having this problem (with the 404 override sending a 200 OK status)

In your custom error controller add:
Code:
$this->output->set_status_header('404');
before you load the views.

Worked for me, hopefully it will help others :-)


Messages In This Thread
$route['404_override'] not sending 301 status code with redirection to custom error page - by El Forum - 06-10-2013, 05:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB