The module adds a CLI which allows to rebuild the following URL Rewrites: categories
, products
and cms-pages
.
Install the module with composer:
composer require staempfli/magento2-module-rebuild-url-rewrite
Rebuild everything.
bin/magento urlrewrite:rebuild categories,products,cms-pages
Rebuild only categories
bin/magento urlrewrite:rebuild categories
Rebuild only products
bin/magento urlrewrite:rebuild products
Rebuild only cms-pages
bin/magento urlrewrite:rebuild cms-pages
Rebuild only specific categories
bin/magento urlrewrite:rebuild categories -c=25,26,27
or products
bin/magento urlrewrite:rebuild products -p=1,2,3
Rebuild only specific stores
bin/magento urlrewrite:rebuild categories -s=1,2
Any combination is possible.
See --help
for more information
bin/magento urlrewrite:rebuild --help
- PHP: 7.0.x | 7.1.x
- Magento 2.1.x | 2.2.x
If you have any issues with this extension, open an issue on GitHub.
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Marcel Hauri, and all other contributors
Open Software License ("OSL") v. 3.0
(c) 2018, Stämpfli AG