Fixing Woocommerce Urls for Better SEO

Last Updated on

Let’s be honest,

Woocommerce default product and category urls SUCK!

Am I right or what?

Anyway there’s a simple solution that’s 100% automatic, and removes the /product-category and /product/ parts of the woocommerce permalinks.

PLUS it gives you the option to edit the product canonical urls.

It’s called the Perfect SEO Url plugin, and the video below will demo it for you.

The Perfect SEO Url plugin is available for instant download for only $119, and I can assure you it will pay for itself many times over with the SEO benefit.

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:
  • Product canonical:

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:

Make your canonical and permalinks include the category in Woocommerce

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:
  • Product canonical:

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

Adding the canonical prevents this, allowing Google to only index the version.

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

Change woocommerce product canonical to the root of the store

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

Looking for a free workaround?

So was I!

I literally searched the web for days looking for a manual override or hack…

Only to find it was literally IMPOSSIBLE!

So I advise you to save yourself some time by spending a little money, $119 to make all your woocommerce product-category slug problems melt away!

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!

Matt Jackson

Digital marketer, specialising in e-commerce SEO, including audits and strategy. Director of JP Digital Enterprises.

This Post Has 4 Comments
  1. Hi there,
    After setting this amazing plugin the way you mentioned, I realized it’s adding noindex tag to all non canonical product urls
    so if i have a product that shows 4 times in different categories.
    3 of them get the “noindex” and one, which is the canonical URL, doesn’t get any noindex tag.

    Is this how it’s supposed to work?


    1. No this sounds like another plugin is inserting noindex into the other product variations.

      Try uninstalling all possible plugins on a dev environment and test again, the plugin is supposed to show all variations and just canonical them to the version you want indexed.

      If you need any help you can always email me at [email protected]

  2. Hi Matt,
    thanks for post,
    i have bought Perfect SEO Url plugin but instead of improving I’ve lost traffic because the plugin creates duplicates of products.
    The assistance of perfect seo url is absent, and I do not know how to solve,
    I do not recommend buying because it does not work well.

    Best Regards

    1. Hi Luca, although it may create duplicate “paths”, they should all have the same canonical url, which means there is never duplicate content within Google.

      Having checked your website I can see that it works fine, perhaps you could be more specific, so that I can check further…

Leave a Reply

Your email address will not be published. Required fields are marked *