https://github.com/staempfli/magento2-module-rebuild-url-rewrite
Module allows to rebuild the following URL Rewrites: categories, products and cms-pages.
https://github.com/staempfli/magento2-module-rebuild-url-rewrite
magento2-extension magento2-module magneto2 url-rewrite
Last synced: 6 months ago
JSON representation
Module allows to rebuild the following URL Rewrites: categories, products and cms-pages.
- Host: GitHub
- URL: https://github.com/staempfli/magento2-module-rebuild-url-rewrite
- Owner: staempfli
- License: osl-3.0
- Created: 2018-06-27T13:28:28.000Z (about 8 years ago)
- Default Branch: develop
- Last Pushed: 2020-09-16T11:58:48.000Z (almost 6 years ago)
- Last Synced: 2025-06-12T03:17:37.529Z (about 1 year ago)
- Topics: magento2-extension, magento2-module, magneto2, url-rewrite
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 13
- Watchers: 8
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Magento 2 Rebuild URL Rewrites
[](http://www.repostatus.org/#abandoned)
[](https://travis-ci.org/staempfli/magento2-module-rebuild-url-rewrite)
[](https://www.codacy.com/app/Staempfli/magento2-module-rebuild-url-rewrite?utm_source=github.com&utm_medium=referral&utm_content=staempfli/magento2-module-rebuild-url-rewrite&utm_campaign=Badge_Grade)
[](https://codeclimate.com/github/staempfli/magento2-module-rebuild-url-rewrite/maintainability)
[](https://codeclimate.com/github/staempfli/magento2-module-rebuild-url-rewrite/test_coverage)
The module adds a CLI which allows to rebuild the following URL Rewrites: `categories`, `products` and `cms-pages`.
## Installation
Install the module with composer:
```sh
composer require staempfli/magento2-module-rebuild-url-rewrite
```
## Usage
Rebuild everything.
```php
bin/magento urlrewrite:rebuild categories,products,cms-pages
```
Rebuild only categories
```php
bin/magento urlrewrite:rebuild categories
```
Rebuild only products
```php
bin/magento urlrewrite:rebuild products
```
Rebuild only cms-pages
```php
bin/magento urlrewrite:rebuild cms-pages
```
Rebuild only specific categories
```php
bin/magento urlrewrite:rebuild categories -c=25,26,27
```
or products
```php
bin/magento urlrewrite:rebuild products -p=1,2,3
```
Rebuild only specific stores
```php
bin/magento urlrewrite:rebuild categories -s=1,2
```
Any combination is possible.
See `--help` for more information
```php
bin/magento urlrewrite:rebuild --help
```
## Requirements
- PHP: 7.0.x | 7.1.x
- Magento 2.1.x | 2.2.x
Support
-------
If you have any issues with this extension, open an issue on [GitHub](https://github.com/staempfli/magento2-module-rebuild-url-rewrite/issues).
Contribution
------------
Any contribution is highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).
Developer
---------
[Marcel Hauri](https://github.com/mhauri), and all other [contributors](https://github.com/staempfli/magento2-module-rebuild-url-rewrite/contributors)
License
-------
[Open Software License ("OSL") v. 3.0](https://opensource.org/licenses/OSL-3.0)
Copyright
---------
(c) 2018, Stämpfli AG