Submitted by rolli1 on Sat, 2018-12-08 10:14 in Price Tapestry
Hi David,
I have Problems with indexing my pages on google. The reason google announces is that the page is no longer available but also no 404 is sent.
How can I send in such a case a 404.
Search your products.php file for the text "product no longer available" and you should be able to locate this code at around line 66 but varies by distribution (I know you have been running the script for several years now)
$banner["h2"] .= "(".translate("product no longer available").")";
...and REPLACE with:
$banner["h2"] .= "(".translate("product no longer available").")";
header("HTTP/1.0 404 Not Found");
Hello Roland,
Search your products.php file for the text "product no longer available" and you should be able to locate this code at around line 66 but varies by distribution (I know you have been running the script for several years now)
$banner["h2"] .= "(".translate("product no longer available").")";
...and REPLACE with:
$banner["h2"] .= "(".translate("product no longer available").")";
header("HTTP/1.0 404 Not Found");
Cheers,
David.
--
PriceTapestry.com