IIS Customer 404 , Google Success 200ok

Published by

Posted on January 23, 2012

so you setup a customer 404 page , but Google is showing the page returns a 200 ok instead of 404 not found.

For Coldfusion pages you will need to add the following to your 404 page

<cfheader statusCode="404" statusText="Not Found">

For ASP
<% Response.Status = "404 Not Found" %>

For HTML and ASP.net , Catch me on twitter and send me your ideas for those. 
@signofthegrind