-
Hi,
I have many woocommerce categories that consist of +100 products, meaning that i have such situations:
http://www.website.com/category/
http://www.website.com/category/page/1
http://www.website.com/category/page/2
http://www.website.com/category/page/3
…For example, i have the following website with the main category called “havehegn”, the sub category called “modul havehegn” (see below). Let’s consider the “modul havehegn” category page (https://plantpare.dk/havehegn/modul/). I need to make sure that all /category/page/x/ URLs has a canonical tag pointing towards their “real” category (which in this case is of course https://plantpare.dk/havehegn/modul/).
https://plantpare.dk/havehegn/modul/
https://plantpare.dk/havehegn/modul/page/3/My big problem atm is that RankMath doesn’t do this. First of all, I have a hard time understanding how it is possible that such a big and famous plugin doesn’t do this by default, when it is well-known that not having canonical tags cause SEO issues for websites. For example, right now google are indexing all these /category/page/x URL’s and that causes problems for google to identify which page should actually rank (which of course is https://plantpare.dk/havehegn/modul/).
My question is: How can i make sure canonical tags are added so that /category/page/x URLs are pointing towards /category/
Right now, https://plantpare.dk/havehegn/modul/page/3/ has the following tags:
<link rel=”canonical” href=”https://plantpare.dk/havehegn/modul/page/3/” />
<link rel=”prev” href=”https://plantpare.dk/havehegn/modul/page/2/” />
<link rel=”next” href=”https://plantpare.dk/havehegn/modul/page/4/” />In the ideal case, it should look like:
<link rel=”canonical” href=”https://plantpare.dk/havehegn/modul/” />
<link rel=”prev” href=”https://plantpare.dk/havehegn/modul/page/2/” />
<link rel=”next” href=”https://plantpare.dk/havehegn/modul/page/4/” />Am I completely misunderstanding something here (I kind of hope so, otherwise, i think you should make these changes a default option)? Maybe the setup of my site causes this issue?
The ticket ‘Fix canonical tag on WooCommerce Category pages’ is closed to new replies.