Support » Plugin: Permalink Manager Lite » Duplicate product category url

  • Resolved Feruz Khamidi

    (@malinaparty)


    All subcategories in WordPress woocommerce create 2 urls to same page.

    domain.com/product-cat/childcat-1/childcat-2/

    domain.com/product-cat/childcat-2/

    both urls go to the same page. in the eyes of Google this is duplicate content.
    is there solution for this issue in permalink manager paid one? I checked many woocommerce websites and all have this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @malinaparty,

    Theoretically, you can use Permalink Manager Pro to (canonical) redirect the alternative product category URLs to the canonical (correct) address.

    Anyway, it might be overkill. Personally, I would write a custom code snippet that would compare the actual product category URL (get_term_link()) with requested URL ($wp->request). If the latter does not match the first one, you can make WordPress display 404 error page or force the canonical redirect.

    Best regards,
    Maciej

    Thank you for your fast reply, i prefer your second suggestion, will seek how to write this snippet, it would be nice to see this feature in future permalink manager paid one, many pple would buy it only because of this function, including me).

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.