404 Page Returns "200 OK" ?

Permalink
I came upon a blog post written in February of 2012:

http://richardjh.org/blog/ten-things-you-should-do-when-using-concr...

that says, and I quote:
-----
The 404 page in Concrete5 CMS returns status "200 OK", which means search engines will index these as pages, and as the content is always the same, you may get penalised for duplicate content.

To make the 404 page send a status "404 Not Found" copy the file concrete/single_pages/page_not_found.php to single_pages/page_not_found.php.

Edit single_pages/page_not_found.php and add

<?php header("HTTP/1.0 404 Not Found"); ?>
after the line that reads

<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
-----

Is that still true in version 5.6.2.1?

Bob

bobrocke
 
mesuva replied on at Permalink Best Answer Reply 1 Attachment
mesuva
Nope, I believe that was fixed a while back.

I just did a quick test myself in 5.6.2.1, visited a page that didn't exist and viewed the network requests using Chrome's Web Inspector - a 404 was returned.
bobrocke replied on at Permalink Reply
bobrocke
Thanks for checking!

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.