Support » Plugin: WooCommerce » remove product-category from url

Viewing 6 replies - 1 through 6 (of 6 total)
  • Removing /product/, /product-category/, or /shop/ from the URLs is not advisable due to the way WordPress resolves its URLs. It uses the product-category (or any other text for that matter) base of an URL to detect that it is an URL leading to a product category.

    There are SEO plugins that allow you to remove this base, but that can lead to a number of problems with performance and duplicate URLs.

    Better to avoid

    You will make it harder for WordPress to detect what page you are trying to reach when you type in a product category URL.

    Also, understand that the standard “Page” in WordPress always has no base text in the URL. For example:

    http://yoursite.com/about-page/ (this is the URL of a standard page)
    http://yoursite.com/about-page/product-category/category-x/ (this is the URL leading to a product category)

    What would happen if we remove that ‘product-category’ part?

    http://yoursite.com/about-page/about-page/
    http://yoursite.com/about-page/category-x/

    WordPress will have to do much more work to detect what page you are looking for when entering one of the above URLs. That is why we do not recommend using any SEO plugin to achieve this.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    You can give it a custom base though at Settings > Permalinks: http://cld.wthms.co/186Rh/17uMcIWD

    This works – http://woocommerce-url-builder.co.za/ using best practices and does not slow down your site.

    Now wubpress.com

    • This reply was modified 5 years, 10 months ago by richymilo.

    Holy crap, @richymilo. That plugin is amazing. I can’t believe how easy it is! I spent an hour (and never got it working) and then I found your plugin. Best $20 I ever spent.

    Just a question re: product tags… It doesn’t seem like your plugin affects those at all (just categories). Or am I wrong? Will product tags always have some sort of prefix/slug such as “myshop.com/product-tag/foo/”? I am honestly fine with that, but I wondered if I was just missing a config option somewhere.

    Thanks!

    Hi there,

    At the moment there is no support for product-tags.
    However I have added to the list of changes for the next release.

    Thanks for the support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘remove product-category from url’ is closed to new replies.