Back

Setting Canonical URL on Miva Merchant Category and Product Pages

Read on to learn more...

By Miva | March 19, 2009
Woman using a mobile phone

Share

  

Want to read this blog offline?

No worries, download the PDF version now and enjoy your reading later...

Download PDF

In 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:

  • Login to your store admin
  • Under your store name click on Pages
  • Click edit next to CTGY (search if needed)
  • Locate the line:

    <base href="&mvt:global:basehref;"

  • Paste the code below after the line above:

    <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:

  • Login to your store admin
  • Under your store name click on Pages
  • Click edit next to PROD (search if needed)
  • Locate the line:

    <base href="&mvt:global:basehref;"

  • Paste the code below after the line above:

    <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 top

Author's Bio

Miva

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.

More Posts Like This

Stay in the Loop

Sign up to receive the latest in ecommerce news, articles, whitepapers, and more.

OR CALL 800.608.MIVA

  • Facebook icon
  • Twitter icon
  • Instagram icon
  • LinkedIn icon