cancel
Showing results for 
Search instead for 
Did you mean: 

Removing main category path from sub-categories URLS

Removing main category path from sub-categories URLS

Hi there,

 

is there a way to remove main categories in the sub / sub/sub etc. category urls?

We need this 1) for SEO reason and 2) it is better if you move categories to another main category for example so the path always stays the same:

 

Magento 2.0 behavior: 

 

main category: domain.com/main

sub category: domain.com/main/sub1

sub sub category: domain.com/main/sub1/sub2

 

We need:

main category: domain.com/main

sub category: domain.com/sub1

sub sub category: domain.com/sub2

 

I think there is no backend settings for that or is there?

How can we achieve this?

 

Many thanks!

 

André

 

 

5 REPLIES 5

Re: Removing main category path from sub-categories URLS

How to remove category path from Magento 2 product URLs: https://mage2.pro/t/312

Re: Removing main category path from sub-categories URLS

 

 

Re: Removing main category path from sub-categories URLS

no answer on category urls?

Re: Removing main category path from sub-categories URLS

Hi Andreulrich, 

Have you found a solution for this problem? I'am looking for exactly the same thing, but I can't find anything,

 

Kind Regards,

Jelte

Re: Removing main category path from sub-categories URLS

Hi Jelte,

 

no i am sorry.

The magento team did not get back with an answer to me also i think a ecommerce system which is not be able to change the category structure by default is not practice.

 

We ended up in writing our own module for that :-/