OSCommerce 404 Not Found

|

product_info.phpの

require('includes/application_top.php');

の後に

$product_info_query = tep_db_query("select products_id, products_last_modified from " . TABLE_PRODUCTS . " where products_status = '1' and products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' limit 1");
if (!tep_db_num_rows($product_info_query)) {
header("HTTP/1.0 404 Not Found");
exit;
}

スパイダーのみは、

$product_info_query = tep_db_query("select products_id, products_last_modified from " . TABLE_PRODUCTS . " where products_status = '1' and products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' limit 1");

if (!tep_db_num_rows($product_info_query) && $spider_kill_sid) {

header("HTTP/1.0 404 Not Found");
exit;

}

Yahooの新クローラー対応

spider_configure.phpを修正

$spider_agent = array(
'bot',
'crawler',
'empas',
'google',
'ia_archiver',
'slurp',
'spider',
'teoma',
'yahoo',
);

カテゴリ

このブログ記事について

このページは、adminが2007年7月16日 22:47に書いたブログ記事です。

ひとつ前のブログ記事は「OSCommerce Faster Page Loads Less DB queries」です。

次のブログ記事は「OSCommerce featured_products_v1.3_j インストール」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。