By Miva | March 19, 2009
No worries, download the PDF version now and enjoy your reading later...
Download PDFIn February I covered how the search engines are taking a stab at helping website owners address duplicate content by specifying a preferred URL for each page with a canonical URL meta element and showed how to set the canonical URL for your storefront.
Today I am going to show you how to set the canonical URL in the Miva Merchant admin for product and category pages. My examples use the default 5.5 admin interface with no extra modules; if you have a template manager then you will need to make the changes inside the template manager instead of the default PROD page and CTGY page template.
Here are the steps to setup for your categories:
<base href="&mvt:global:basehref;">
<link rel="canonical" href="https://www.example.com/mm5/merchant.mvc?Screen=CTGY&Category_Code=&mvta:category:code;" />
Here are the steps to setup for your products:
<base href="&mvt:global:basehref;">
<link rel="canonical" href="https://www.example.com/mm5/merchant.mvc?Screen=PROD&Product_Code=&mvta:product:code;" />
You will need to update the text in href= to match your domain and the location of your merchant.mvc file. The above examples are intended for people using the default URLs in Miva Merchant; however, many sites use SEO friendly links using the SEO settings in Miva Merchant or using a module such as Ultimate SEO Links by Sebenza.
Fear not, here is how to change the canonical element to implement this trick using SEO friendly URLs:
Set Canonical URL Using SEO Short Links
<link rel="canonical" href="https://www.example.com/category/&mvta:category:code;.html" />
<link rel="canonical" href="https://www.example.com/product/&mvta:product:code;.html" />
Set Canonical URL Using Sebenza SEO module for product or category codes
<link rel="canonical" href="https://www.example.com/&mvta:category:code;.html" />
<link rel="canonical" href="https://www.example.com/&mvta:product:code;.html" />
Set Canonical URL Using Sebenza SEO module for product or category names
<link rel="canonical" href="https://www.example.com/&mvta:category:name;.html" />
<link rel="canonical" href="https://www.example.com/&mvta:product:name;.html" />
Learn more about technical SEO for your ecommerce site.
Back to topMiva
Miva offers a flexible and adaptable ecommerce platform that evolves with businesses and allows them to drive sales, maximize average order value, cut overhead costs, and increase revenue. Miva has been helping businesses realize their ecommerce potential for over 20 years and empowering retail, wholesale, and direct-to-consumer sellers across all industries to transform their business through ecommerce.
Visit Website