osCommerce 404 base href Googlebot error

This article explains how to correct the Googlebot error below on your osCommerce site:

404 - https://www.example.com/http%3A%2F%2Fwww.example.com%2Fproduct_info.php%3Fproducts_id%3D104&layout=standard&show_faces=false&width=125&action=like&colorscheme=light&height=35   
(found at https://www.example.com/product_info.php?products_id=104)

Code view of base href osCommerce

You will need to fix your osCommerce site to remove the <base href="example.com"> from the code in the head section. See the snapshot to the right.

Removing the <base href=""> from your osCommerce

  1. Login into your cPanel.
  2. Go to the File Manager. Select your osCommerce install directory and click Go.
  3. Go to the following file and edit it.

    /includes/template_top.php

  4. template code osCommerce

    Find the <base href="example.com"> code in the file.

    Comment code osCommerce

    Comment out the code using a PHP comment.

  5. Save the change.

Google will now read your website correctly without the <base href="example.com"> code being rendered.

Was this article helpful? Join the conversation!