1

"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?

0

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. – xdev Apr 21 at 14:36

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.