In my magento 2.2.4 setup some products of some categories show the category path and some do not. i checked all settings but I dont see the difference.

In all store views (Default, etc.) I have setup "NO" for the below setting:

Stores/Configuration/Catalog/Catalog/SearchEngineOptimisation/Use Categories Path for Product URLs

I have ran the reindex several times but no results so far.

2 Answers 2


Go to admin panel and Catalog => Category/Display Settings / Anchor and check value . This setting change URL path product . (make clean cache and reindex)


The problem here is that URL rewrites cannot be recreated from nowhere.

SO please try the below extension and run the commands as mentioned there.



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.