Hello,
Google just indexed my site, but a lot of those older products are now out of stock and are removed from my site. Google still keeps those products in its index however. Would it be possible to include something at the header of the "Product Not Found" pages so SEs won't include these pages (or remove them)?
Thanks for all your help.
Michael
Hi Michael,
Yes - you could use PHP's header() function to issue a 404 response to old products. With a site as large as yours, I think this is preferable to including code to search for alternative products.
In products.php you will find:
$banner["h2"] .= "(".translate("product not found").")";
..and add the following line:
header("HTTP/1.0 404 Not Found");
Cheers,
David.