I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them.

I set “Use Categories Path for Product URLs” to "NO", but when I am saving any category it is creating the Catalog URL Rewrites for all the products of that category i.e. one regular url (domain.com/product_name.html) and one for each category path (domain.com/category_path1/product_name.html)


Magento Version: 2.1.5

  • have you found solution for this
    – Pawankumar
    Feb 28, 2020 at 8:42

1 Answer 1


This is how it works. The setting “Use Categories Path for Product URLs” to "NO" will work as expected on every page(Shopping cart, Recently viewed, Crosssell/upsell, wishlist etc) except product listing page.

  • I have tested this right now but on shopping cart page same product url showing (domain.com/category_path1/product_name.html) which is unexpected. Mar 13, 2018 at 9:55
  • run indexing, clear cache.
    – Shireen N
    Mar 13, 2018 at 10:07
  • There is no url_rewrite indexer in magento 2 but still did reindexing and clean as well as flushed magento cache, nothing changed. Mar 13, 2018 at 12:13
  • This setting not working on Product Listing pages makes no sense. That's the only place I would expect it to have any effect. Did you figure anything out with this? I have this setting turned off too yet it's still generating rewrites I don't want.
    – Mageician
    Sep 27, 2018 at 20:18
  • any solution for this
    – Pawankumar
    Feb 28, 2020 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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