An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Magento 2 Rebuild URL Rewrites

[![Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.](http://www.repostatus.org/badges/latest/abandoned.svg)](http://www.repostatus.org/#abandoned)
[![Build Status](https://travis-ci.org/staempfli/magento2-module-rebuild-url-rewrite.svg?branch=develop)](https://travis-ci.org/staempfli/magento2-module-rebuild-url-rewrite)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b52dfcea9619437d8ae46e311b038c9a)](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)
[![Maintainability](https://api.codeclimate.com/v1/badges/9171761a16613b73ba35/maintainability)](https://codeclimate.com/github/staempfli/magento2-module-rebuild-url-rewrite/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/9171761a16613b73ba35/test_coverage)](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