1. Documentation /
  2. Removing /product/ , /product-category/ , or /shop/ from the URLs

Removing /product/ , /product-category/ , or /shop/ from the URLs

Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our  Support Policy.

In sum

↑ Back to top

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

↑ Back to top

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.

  • 30-day money-back guarantee
  • Support teams across the world
  • Safe and secure online payment