Announcement:Materials and articles for ProductCart 5 can be found at our brand new support center.

Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!

Canonical URLs

Overview

For an overview of what a canonical URL is and does, please see this Google Webmaster article:

http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

Installation

Canonical URLs are built into ProductCart v4.1. If you are running v4.1 or later there is nothing to install.

If you are running a previous version:

  1. You must be running v4.0
  2. Download this edited version of include-metatags.asp
  3. Make a back-up copy of your current version of the file
  4. Edit the default Meta Tags in the new version. You can copy and paste from the current version of the file.
  5. Upload include-metatags.asp to the “pc” folder, overwriting the existing file

We uploaded this version of the file to our ProductCart software store. So you can see Canonical URLs at work there already.

Notes

  • This file is in “BETA”. We are still testing it and looking for potential issues. If you choose to upload it to your store, make sure you test around quite a bit and see if you spot any problems. Visit various pages and look at the source code of the page to ensure that the canonical URL is written correctly to the page (category or product page).
  • Since the same product may be assigned to multiple categories, we believe it makes sense not to include the category ID in the canonical URL. That way the canonical URL becomes the most generic address for that product. Sort of a “common denominator” for it.

Known Issue & Fix

The v4.0 version of ”pc/configurePrd.asp” and ”pc/reconfigure.asp” do not include ”productcartFolder.asp”, which leads to an incorrect canonical URL. These files are only used by the Build To Order version of ProductCart.

To fix the problem, add the following include statement to the include statements at the top of the pages:

<!--#include file="../includes/productcartFolder.asp"-->

This fixes the issue (e.g. the canonical URL is now correct on this BTO product page).


QR Code
QR Code Canonical URLs (generated for current page)