Business Magazine

Fixing Woocommerce Urls for Better SEO

Posted on the 13 September 2017 by Matt Jackson @MattJacksonUk1

Explanations of Proper eCommerce Canonical Urls

So the way you structure your eCommerce permalinks and canonical urls is very dependent on the way you setup your website.

There are two ways of setting up your eCommerce website:

  1. Each product to only be displayed in one category.
  2. Each product to be displayed in multiple categories.

For example if you sell Laptops, and you have a specific Large Screen, HD Laptop with 8GB Ram. This product could simply be found within the Laptops category, or it could also be found within the HD Laptops, the 8GB Ram Laptops, etc.

Structure When Products Are In One Category Only

If you have this simple structure with products only tagged to one category, then your permalink structure should match your canonical url, and should be in the following format:

  • Category -> Product permalink: domain.com/category/product-url
  • Product canonical: domain.com/category/product-url

This means that Google will index that version, and it's also the version linked to from your category page.

To implement this using the Perfect SEO Url plugin, you should enable the following settings:

Fixing Woocommerce Urls for Better SEO

Structure When Products Are In Multiple Categories

With this slightly more complicated setup you need to ensure your product canonicals and permalinks are consistent with this:

  • Category -> Product permalink: domain.com/category/product-url
  • Product canonical: domain.com/product-url

This is because you will also have category -> product links like domain.com/category2/product-url and domain.com/category3/product-url etc, which would create duplicate pages on your website.

Adding the canonical prevents this, allowing Google to only index the domain.com/product-url version.

The way to implement this with the Perfect SEO Url plugin is as follows:

Fixing Woocommerce Urls for Better SEO

This will give you the clean woocommerce urls that you're looking for, while improving your Google rankings at the same time.


You Might Also Like :

Back to Featured Articles on Logo Paperblog

These articles might interest you :