1

I have a product black-jacket under the category men->tops when i click on men the url is like http://magento2/men/black-jacket.html and if i click on tops under the men then the url is http://magento2/men/tops/black-jackets.html i want the url like http://magento2/tops/black-jacket.html on the click of both the menu in magento 2. please suggest me, i tried to do it with url-rewrites.

1

Please do try with this option : setting up the search engine optimization settings by configuration / catalog / catalogenter image description here

As shown in the picture, Use Categories Path for Product URLs to No

  • Yes, i know this. it will remove all categories from the url but i want to show the subcategory in the url – Nitin Mishra May 29 at 4:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.