"Use Categories Path for Product URLs" set to no on admin panel

But everytime I create a new product, it creates rewrite also for category/product url

So both of them work: example.com/category/product and example.com/product

But I don't want Magento to create automatically the category inside the product url automatically, does anyone know how to disable it?

1 Answer 1


After that, you must reindex and refresh the cache.

php bin/magento indexer:reindex
php bin/magento cache:flush
  • it's not working, in the category page the product link has no category name, but it still creates the rewrite url for both link (with and without category name) when I create a new product.
    – bob
    Commented Apr 21, 2019 at 14:36

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.