Few Product urls are displaying with category and product id but few products are working fine.

I want to keep all URL like: http://localhost/magento2/test-product not like below http://localhost/magento2/catalog/product/view/id/1234/category/12/

My issue is same like link 1 and link 2 but its not sorting out. I tried mage2 solution but it also didnt help.

This is specific for each category. Product-URLs of one category are working well but other category have issues. That means issue can be of category level not a product level.

Looking for solution.

1 Answer 1


Steps to configuration to remove the category-ID and product-ID

  1. Enable product url by categories in Stores > Configuration > Catalog > Catalog > Search Engine Optimization > Use Categories Path for Product URLs select No

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.