Home / Premmerce WooCommerce Blog / SEO / WooCommerce Permalinks Manager: remove product-category, shop slag from URL

WooCommerce Permalinks Manager: remove product-category, shop slag from URL

30 August 17
Reading Time: 3 minutes
4 Comments
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes)

Woocommerce Permalinks Manager is developed to improve current WooCommerce url configuration features and provide better display and extra capabilities for your online store SEO, according to the WooCommerce SEO Audit we conducted recently.

Woocommerce Permalinks Manager

Major Plugin features:

  • Removing /product-category base from URL
  • Removing /product from URL
  • Removing all the prefixes from URL, leaving just the category or product name

Besides testing the basic plugin features, first of all, we tested how it works with the following:

  • Basic WooCommerce features
  • Yoast
  • WPML WooCommerce Multilingual

With the development and adaptation of other features from our Roadmap, all of them will be tested for compatibility with the Permalink Manager.

You can install this plugin from the official WordPress plugin directory or download and install it manually from our repository on GitHub.

Installation

  1. Unzip the downloaded zip file.
  2. Upload the plugin folder into the “wp-content/plugins/” directory of your WordPress site.
  3. Activate “WooCommerce Permalink manager” from Plugins page.

Woocommerce Permalinks Manager page in admin panel

 

Woocommerce Permalink Manager

URL customization for the categories

The product child category URL before customization looks like the following screenshot:

The plugin allows customizing the product category URLs as follows:

Remove the /product-category/ base with the following steps:

1. Activate Remove base checkbox in the Category section on the Url settings page.

2. To save the changes click Save Changes button.

Here is what you get:

Before: http://wp.loc/product-category/accessories/action-figures/

After: http://wp.loc/accessories/action-figures/

 

Remove parent category taking the following steps:

  1. Activate Remove parent slugs checkbox in the Category section on the Url settings page.

    2. Click Save Changes button to save changes.

Here is what you get:

Before: http://wp.loc/product-category/accessories/action-figures/

After: http://wp.loc/product-category/action-figures/



Remove (product-category) base and parent category in the following way:

  1. Activate Remove base and Remove parent slugs checkboxes in Category section on the Url settings page.

    2. Click Save Changes button.

Here is what you get:

Before: http://wp.loc/product-category/accessories/action-figures/

After: http://wp.loc/action-figures/

 

URL customization for the products

The product page on the site before URL customization:

Woocommerce Permalinks Manager allows customizing product URLs in the following way:

Remove base (shop or product) by taking the following steps:

  1. Activate Remove base checkbox in Product section on the Url settings page.

    2. Click Save Changes button.

Here is what you get:

Before: http://wp.loc/shop/accessories/action-figures/acme/

After: http://wp.loc/accessories/action-figures/acme/

 

Using “Yoast SEO” primary category URL for the product with multiple categories

Yoast SEO allows you to choose a primary category if the product has a few of them. The screenshot below shows that the primary category is not attached to the product URL.

If you need the product URL to be displayed in the primary category, take the following steps:

  1. Install and activate Yoast SEO free version.
  2. Choose “Shop base with category” in the Product permalinks on the Permalink Settings page.

  3. Install and activate Woocommerce Permalinks Manager plugin.
  4. Go to the Edit page of a product, connected to multiple categories. As you can see on the screenshot below, primary category attaches to the product URL.

Here is the result:

Yoast SEO XML Sitemap

All the changes made through Woocommerce Permalink Manager are also incorporated in Yoast SEO XML Sitemap.

Further work and plugin development

We will be very grateful if we get your feedback and thoughts on developing the plugin. We shall take into account all of your ideas. As we continue developing our products, we will test the plugin to add new features to it, if needed.

Check also our Yoast WooCommerce SEO Addon if you want to improve your store SEO.

Comments (4)
  • DRKMTTR Creative says:

    I love how easy this is to use, however is it possible to make the plugin LEAVE “/shop/” in the URL and only remove “product-categories”? We are looking for a way to make /shop/category/product/ URLs without having “product-category” and this plugin seems to remove too much of the URL.

    1. Ivan Pylypchuk says:

      Thanks for your replay. With this plugin is possible to leave any slug, you need, just play with different settings.

  • Steve Downs says:

    I just tried to activate the plugin and I get the following error:

    Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /Applications/AMPPS/www/princess/wp-content/plugins/woo-permalink-manager/premmerce-url-manager.php on line 40

    I’m running WP 4.8.3 with WooCommerce 3.2.3

    1. Steve Downs says:

      Problem solved. I was running on old version of PHP on my local AMPPS server. Now activates fine

Leave a Reply

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

Sign up for updates

Be the first to know about Premmerce development and project news

You have successfully subscribed to our mailing list. Thank you!