Welcome Guest, Not a member yet? Register   Sign In
Sending 404 status code with error page
#7

[eluser]david_ais[/eluser]
[quote author="Pygon" date="1194389619"]Nevermind -- I've just been able to track these issues before using it, but since the seperate error page isn't actually loading, maybe it won't help much.

Looking in my access logs, 404 is being sent.

Are you using a custom error_404.php?[/quote]

The page that's listed in the server access log is whatever page was requested. As Derek said, because index.php is running and returns an output, a 200 status code is returned. In the absence of another page to display CI just returns the contents of /application/errors/error_404.php - which I've customized. Not that it would make any difference as CI just echos the contents to the output.

Although CI's own log records it as a 404 page error - in the server log it's listed with status 200. If you're seeing 404 there - tell me how you did it! I don't see anywhere in CI that's sending status headers. Or did I miss something?

Regards

db


Messages In This Thread
Sending 404 status code with error page - by El Forum - 11-06-2007, 06:10 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 08:00 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 09:21 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 09:58 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 10:39 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 10:53 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 11:35 AM
Sending 404 status code with error page - by El Forum - 11-06-2007, 03:56 PM
Sending 404 status code with error page - by El Forum - 11-06-2007, 04:56 PM
Sending 404 status code with error page - by El Forum - 11-06-2007, 07:46 PM
Sending 404 status code with error page - by El Forum - 11-07-2007, 08:48 AM
Sending 404 status code with error page - by El Forum - 12-02-2008, 04:47 PM
Sending 404 status code with error page - by El Forum - 01-30-2012, 01:10 PM
Sending 404 status code with error page - by El Forum - 01-30-2012, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB