I have a Magento 2.1.10 store. I have imported all the products and categories. Now the product url is


But I want the URL as


For this I have done the following steps

  1. Stores->configuration->Catalog

  2. Removed .html from both fieldsProduct URL Suffix ,Category URL Suffix .

  3. Saved the config ,reindexed and cleared cache.

But it didn't removed the html from url

Then I have tried this solution https://github.com/magento/magento2/issues/3679#issuecomment-311075725

It works for all categories and some products. Now few Products have url like this http://www.exaple.com/catalog/product/view/id/140/s/water-dispenser/category/43/

How can I make these URL as http://www.exaple.com/samplecategory/water-dispenser ?

1 Answer 1


I have fixed the issue by using this extension https://github.com/Iazel/magento2-regenurl

Reference: https://magento2-blog.com/magento-2-regenerate-url-rewrites/

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.