Regenerating Magento 2 Proudct url
If there is an issue in product url of a specific product, remove those products url in backend.
Maketing -> Url Rewrite (SEO section)
Then open the product in backend and save the product with selected websites and categories of the specific store view
If it is not resolved the issue, Open the product in backend and remove the one of the category assigned to the product and save the product and again add that category and save the product.
if you have issue in many products, do the following in database level.
delete from url_rewrite where request_path like '%%test-urlkey%%';
delete from catalog_url_rewrite_product_category;
Posted by vasan to vasan's deck (2021-10-21 13:22)