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

 
DSchlocker replied on at Permalink Reply
I tried adding an HTML block to the header navigation and putting this in:
<?php
header ("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found"); 
?>


But that doesn't actually put the code in the head.
ryan replied on at Permalink Reply
ryan
Open up: /concrete/controllers/profile/controller.php

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->)
DSchlocker replied on at Permalink Reply
I'm not sure if it's working though?
http://www.drsandassociates.com/404...

Google is saying it's still not right still.
ryan replied on at Permalink Reply
ryan
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.
DSchlocker replied on at Permalink Reply
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.