Jump to content

Problem with tag affecting Google indexing site


clamor

Recommended Posts

Hi

 

Since late 2014 the number of URLs indexed from my site by Google has dropped from over 300 to 32. This seems to have coincided with upgrading to version 5.2.14.

 

I posted a question on the Google Webmaster Central Help Forum about this today - see the response below:

 

On all of your individual product pages you have this tag which tells Google that these two pages are essentially the same and you want the OTHER one indexed
<link rel="canonical" href="http://www.recycledpatterns.com/shoppingcart/index.php?_a=product"/>

 

Can anyone explain why this tag is appearing on the product pages and what I need to do?

 

I know I can upgrade to newer versions of CubeCart but I don't want to move to beta versions at this stage and prefer to keep my licence key for now.

 

Thanks for any assistance or advice you can provide.

Link to comment
Share on other sites

In the file /classes/gui.class.php, near line 220 (give or take a few):

Was:
$GLOBALS['smarty']->assign('CANONICAL', currentPage(true, null, false));
 
Now:
$GLOBALS['smarty']->assign('CANONICAL', currentPage(false, null, false));

The _a=product part is appearing because of a bug introduced in CC5214 and fixed in CC5216.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...