This module has been deprecated., (*1)
Please use the following recommended alternative:, (*2)
https://github.com/elgentos/regenerate-catalog-urls, (*3)
It is possible that the module has created invalid category url rewrites because the rewrites are created for all the stores and not for the stores which are related to the category. The recommended alternative uses the stores related to the categories., (*4)
To see if you have invalid url rewrites run the following select query:, (*5)
SELECT DISTINCT u.url_rewrite_id from store as s INNER JOIN store_group as sg ON s.group_id = sg.group_id INNER JOIN catalog_category_entity as c ON sg.root_category_id = SUBSTRING_INDEX(SUBSTRING_INDEX(c.path, '/', 2), '/', -1) LEFT JOIN url_rewrite as u ON c.entity_id = u.entity_id AND s.store_id != u.store_id WHERE entity_type = 'category';
This query will return url rewrite ids which you can then remove from the url_rewrite table., (*6)
Warnings, (*7)
Usage, (*8)
All Categories, All Products, All Storeviews
php bin/magento experius_reindexcatalogurlrewrites:categoryurls
, (*9)
Specific Products, Specific Store Ids, (*10)
php bin/magento experius_reindexcatalogurlrewrites:producturls --product_ids=36,37 --store_ids=1
, (*11)
All Products, All Storeviews, (*12)
php bin/magento experius_reindexcatalogurlrewrites:producturls
, (*13)
All Products, Selected Storeviews, (*14)
php bin/magento experius_reindexcatalogurlrewrites:producturls --store_ids=1
, (*15)
All Storeviews, Selected Products, (*16)
php bin/magento experius_reindexcatalogurlrewrites:producturls --product_ids=36,37
, (*17)
Credits, (*18)
https://github.com/Iazel/magento2-regenurl/, (*19)
@PascalBrouwers categories url pull request, (*20)