In the Site, product URL is like this: http://www.test.com/product-url-key
But when I searching the product then some product URLs are showing like this:
http://www.test.com/catalog/product/view/id/2221/product-url-key
This is not for all products.
i want to url like this type http://www.test.com/product-url-key.html
Best Answer
To resolve this issue first delete the rows from the "url_rewrite" table which has 'product' as 'entity_type'. You can use below query
Then install below the extension
and run the below command.
This solution is worked for me, Hopefully, this will help you.