Our 404 page returns a 200 response instead of a 404 response
Permalink
Is there a block or something that I can put in there that will fix this? Or maybe I need to make a new template with the appropriate header or something?
Anyone know an easy solution for this?
Thanks,
David
Anyone know an easy solution for this?
Thanks,
David
Open up: /concrete/controllers/profile/controller.php
And around line 16 you'll find:
The problem is that the 404 header should be output in the page_not_found controller, but that controller isn't ever called and the page_not_found template is rendered with the current page's controller ($this->)
And around line 16 you'll find:
<?php public function view($userID = 0) { if(!ENABLE_USER_PROFILES) { header("HTTP/1.0 404 Not Found"); // add this line $this->render("/page_not_found"); } ?>
The problem is that the 404 header should be output in the page_not_found controller, but that controller isn't ever called and the page_not_found template is rendered with the current page's controller ($this->)
I'm not sure if it's working though?
http://www.drsandassociates.com/404...
Google is saying it's still not right still.
http://www.drsandassociates.com/404...
Google is saying it's still not right still.
I didn't clarify in my previous post that for me only the /profile page rendered a 200 OK header
and urls like: mysite/boguspage rendered a 404 as they should.
and urls like: mysite/boguspage rendered a 404 as they should.
So is there no way to have a 404 response for C5 then? I forgot about this and still haven't been able to verify my site with Google Webmaster tools.
But that doesn't actually put the code in the head.