Question about canonical link / duplicate content

  • Hello there,

    Firstly, thank you so much for creating and sharing such an amazing plugin. It’s really easy to set up and your documentation is excellent.

    I did have a question regarding duplicate content / canonical links though.

    I noticed recently that I have duplicate content, when it comes to a product on my Woocommerce shop. For example, see links in private field below.

    As you can see, all 4 URLs (and maybe more that I’m not aware of?) are all referring to the exact same product. Ideally, I’d like to be able to set the default link to link #4, because it’s got the keywords I’m trying to rank for on Google. I have tried to research how to resolve this but I couldn’t find anything in your KB.

    I did find an article on Yoast explaining how they provide a feature to set the “primary category”, and I was wondering if you have the same? Or could you kindly explain how do I solve this issue with your plugin?

    Thanks so much for your time.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Rank Math has a function to choose the primary category as I show you in this screencast:

    But I think in your case, the best solution is to set the canonical to one of those URLs, for example as I show you in the screencast:

    Looking forward to help you.

    Hi Alberto,

    Thanks very much for your reply.

    Unfortunately, I cannot see the primary category feature as you have suggested even though I have selected multiple categories.

    Your Primary Category seems to pop up dynamically as soon as you select >1 category but mine does not do so.

    I can see the other solution you’ve proposed, but I already have hundreds of products in my store that is affected by this. It will take a lot of time to update every single product.

    I think setting the Primary Category will be easier, but could you advise how do I turn on this feature?

    Thanks very much for your time.

    Kind regards,


    In your case, you can select the primary category by checking the radio button to the side of the category as shown below:

    Looking forward to helping you. Thank you.


    Hello there,

    Thank you so much! This solution works perfectly.

    All the best to you and your team and stay safe!

    Kind regards,


    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.