PHPackages                             asprada/magento2-module-rebuild-url-rewrite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. asprada/magento2-module-rebuild-url-rewrite

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

asprada/magento2-module-rebuild-url-rewrite
===========================================

Magento 2 module to rebuild url rewrites for categories, products and cms.

1.5.5(6y ago)110.2kOSL-3.0PHP

Since Jun 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/asprada/magento2-module-rebuild-url-rewrite)[ Packagist](https://packagist.org/packages/asprada/magento2-module-rebuild-url-rewrite)[ RSS](/packages/asprada-magento2-module-rebuild-url-rewrite/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (13)Used By (0)

Magento 2 Rebuild URL Rewrites
==============================

[](#magento-2-rebuild-url-rewrites)

The module adds a CLI which allows to rebuild the following URL Rewrites: `categories`, `products` and `cms-pages`.

It's a fork from [Stämpfli repository](https://github.com/staempfli/magento2-module-rebuild-url-rewrite) with some improvements to:

- **Multiple root category ID for Magento 2 Multistore.**

    Now when you rebuild categories' urls for specified store with a custom category root ID the correct urls are generated.
- **Use SEO configurations fro Admin Panel for products.**

    Now the configuration option `Use Categories Path for Product URLs` is included during rebuilding products' urls.

    When set to `No` the produtct urls with subcategories in its `path` will not be stored in the `url_rewrite` table.

    It's for the performance purpose. It prevent from generating unused urls and the table has less entries for quicker SQL queries.

    Configuration option path:

    ```
    Admin Panel > Stores > Settings > Configuration > Catalog > Catalog > Search Engine Optimization > Use Categories Path for Product URLs

    ```

Installation
------------

[](#installation)

Install the module with composer:

```
composer require asprada/magento2-module-rebuild-url-rewrite
```

Usage
-----

[](#usage)

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
```

Requirements
------------

[](#requirements)

- PHP: 7.0.x | 7.1.x
- Magento 2.1.x | 2.2.x

Support
-------

[](#support)

If you have any issues with this extension, open an issue on [GitHub](https://github.com/asprada/magento2-module-rebuild-url-rewrite/issues).

Contribution
------------

[](#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
---------

[](#developer)

[Marcel Hauri](https://github.com/mhauri), [Adam Sprada](https://github.com/asprada)

License
-------

[](#license)

[Open Software License ("OSL") v. 3.0](https://opensource.org/licenses/OSL-3.0)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~48 days

Total

12

Last Release

2400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fbad532f8fa3fe149afbeec5bf1cce720745c441f406b4373daa0d0ff600a79?d=identicon)[asprada](/maintainers/asprada)

---

Top Contributors

[![asprada](https://avatars.githubusercontent.com/u/6390698?v=4)](https://github.com/asprada "asprada (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/asprada-magento2-module-rebuild-url-rewrite/health.svg)

```
[![Health](https://phpackages.com/badges/asprada-magento2-module-rebuild-url-rewrite/health.svg)](https://phpackages.com/packages/asprada-magento2-module-rebuild-url-rewrite)
```

###  Alternatives

[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
