Regenerate URL rewrites in Magento 2

Added by on in Web Design

I recently had an issue on a Magento 2 website where a number of URL rewrites had disappeared from the website.  I came across the following Magento 2 module on GitHub that regenerates the Magento 2 URL rewrites:

https://github.com/elgentos/regenerate-catalog-urls

This extension adds console commands to allow you to regenerate:

  • Product URL rewrites based on its url path
  • Category URL rewrites based on its url path
  • Category URL paths based on its URL key and its parent categories

Even though the module gives you the option to regenerate the URL’s for all products in the global store, I found that I had to regenerate the URL’s for each site in the multi store.