When you change yourserver.com for your own website name and there is no content at notfound.html, the automatic 404 server message should be triggered.
this is an ugly hack, btw. I will think of better solution later since I realized this is a simple thing that Quick Cart is missing.
allright guys, here is a much better hack. I realized that only the QC error page needs to be customized. Here is how to do it.
Edit files actions_client/p.php and actions_client/products.php and in both files after line: $content .= $oTpl->tbHtml( 'messages.tpl', 'ERROR' ); add: $sTitle = "Error 404 Not Found - ";
This will trigger a status update when found by search spiders. The "404 Not Found" does this when found in head section of the webpage. Here is more for an avid reader to digest on: http://www.xmlplease.com/error404
3dfx
2009-12-09 14:43
Well, this is something but it still doesn't send real 404 status code, which is a problem :)
dude, Mr. 3dfx, you seem to tap onto something here. Please look here: http://www.jmarshall.com/easy/http/
I thought the "404 not found" only needs to be anywhere in the head section of the webpage but it's probably not true. I will think about this more an will try to present a comprehensive solution with a nice not found page also giving the proper http response, and I mean the Initial Response Line (Status Line) - look at the link above to see what it is.
After some considerable research I prepared another modification, this time it may be really working as supposed to. Should be "best of both worlds - user friendly and returning 404 in the initial response line. Tried in 3 different browsers. 3dfx, could you please check how this works with the search spiders?
Edit files actions_client/p.php and actions_client/products.php and in both files after line: $content .= $oTpl->tbHtml( 'messages.tpl', 'ERROR' ); add: header("HTTP/1.0 404 Not Found\r\n"); $sTitle = "Error 404 Not Found - ";
3dfx
2009-12-12 15:46
Yes - it works. There are a couple of free sites which let you easily check what status code returns your web page. For example this one: http://www.webrankinfo.com/english/tools/server-header.php And after adding 404 in the header the search spiders know that this page is missing. There is one more interesting thing - the only important thing is the actual number of the code, so "404 Not found" is just as good as "404 This page does not exist". I am sure that this hack will be in help for the rest of the Quick.Cart users. Thank you for your help!