Jump to content

Archived

This topic is now archived and is closed to further replies.

UsingOSC

oscommerce 2.3.1 and google crawl url

Recommended Posts

Hi experts:

 

I am not sure if this is related to product_info.php. Google webmaster indicates there is a huge number of 404 url errors. Clicked on one it shows a link like this:

 

http://lifeome.com/http://lifeome.com/product_info.php/il-11-human/pyt214-1mg-p-294

 

so basically the duplication of the domain name is causing the crawl error. The panel says the above url is Linked From

http://lifeome.com/product_info.php/il-11-human/pyt214-1mg-p-294

which is the correct link.

 

Is this a results of some incorrect coding of links in the product_info.php, or something else?

 

Thank you

Share this post


Link to post
Share on other sites

The issue you have is because of following in your <head> section

 

<link rel="canonical" href="http://lifeome.com/http://lifeome.com/product_info.php/il-11-human/pyt214-1mg-p-294" />

 

First thing to check is file includes/configure.php

 

Second, try to make clear when the problem started. Maybe after adding some sort of add-on?

 

 

EDIT

 

The issue must be with file includes/modules/header_tags/ht_canonical.php

 

Replace that file with a original file from version 2.3.3. Make sure you remove the module in admin before replacing the file. Then enable it again

Share this post


Link to post
Share on other sites

Hi George,

 

You're always sharp! I replaced the file with your instructions (many thanks for the details!). I'll wait see if the crawl error disappears.

 

Thank you,

chao

Share this post


Link to post
Share on other sites

On the side, I hope more people will see your reply as there are many reports like this when I googled the problem.

chao

Share this post


Link to post
Share on other sites

×