# How to add prefix before category url in Magento2?

My all categories are assigned in default category. Now I have urls like that:

www.magentoShop.com/category_name/


And I want to add prefix "something" it should look this way:

www.magentoShop.com/something/category_name/


Any ideas how to achieve it?

• Create a category called 'something' and place all of your categories within that? It's URL slug would be added as the prefix you're looking for. – Mikel Bitson Jul 5 '17 at 16:08
• So any idea how to achive this in magento 2 ? for some reason this is the rare question – Gujarat Santana Sep 11 '17 at 3:51
• Here you can find some guidance : magento.stackexchange.com/q/193312/56372 I have created custom router for adding prefix to url using plugin to all products and categories page – Gujarat Santana Sep 15 '17 at 4:23