I have a site with multiple websites in a single magento instance.Each website has a different root catalog.

"Use Category Path for product urls" is enabled and I am trying to generate product urls using this https://github.com/Iazel/magento2-regenurl and Mirasvit SEO Module.

But Not all products are getting SEO Urls Some Product urls are generating like the below: https://new.dcsgrills.com/catalog/product/view/id/20547/s/dcs-30-inch-traditional-built-in-grill-non-rotisserie-bgc-model/category/1743/

Can any one please guide me on this

  • Did you fully reindex? Commented Aug 2, 2018 at 12:24
  • Yes Reindex is Done
    – S.Venky
    Commented Aug 2, 2018 at 12:26
  • write a shell php and load all products to a collection then inside that product looop call product save()
    – Amit Bera
    Commented Aug 2, 2018 at 12:34
  • I tried by saving manually the above product from admin.But still url keys are not generated
    – S.Venky
    Commented Aug 2, 2018 at 12:59

1 Answer 1


Your rel="alternate" meta tags are wrong. Please use the following instead;

<link rel="alternate" hreflang="x-default" href="http://mystore.com/us/men/shirt/polo-red.html" />
<link rel="alternate" hreflang="en-gb" href="http://mystore.com/uk/men/shirt/polo-red.html" />
<link rel="alternate" hreflang="en-fr" href="http://mystore.com/fr/men/shirt/polo-red.html" />

SUGGESTION: You will need to use some extension or hard code to automatically generate it for all product pages. But it should be like the above sample.

Hope it helps. Good Luck!

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.