Search by

sisl-source / magento2-regenerate-url-rewrites

SISL-source

Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories

Package info

github.com/SISL-source/magento2-regenerate-url-rewrites

Homepage

Type:magento2-module

pkg:composer/sisl-source/magento2-regenerate-url-rewrites

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-15 12:51 UTC

This package is auto-updated.

Last update: 2026-09-18 17:26:16 UTC


README

A CLI command that regenerates product and category URL rewrites in Magento 2 — the fix for duplicate, missing or broken URLs after an import, a category move or a migration.

bin/magento ok:urlrewrites:regenerate

Maintained fork of onestic/magento2-regenerate-url-rewrites (originally by Oleg Koval), verified on Magento 2.4.9 / PHP 8.4.

What changed vs upstream

  • execute(): int fix — the console command's execute() had no : int return type, which Symfony Console 7.4 (shipped with Magento 2.4.9) requires. Without it bin/magento threw a fatal error and the whole CLI was unusable. Added the return type and proper Cli::RETURN_SUCCESS / RETURN_FAILURE codes.
  • Added require to composer.json (php 8.1–8.5, magento/framework >=103.0.4 <104); removed minimum-stability: alpha.

Install

composer require sisl-source/magento2-regenerate-url-rewrites
bin/magento setup:upgrade

License

OSL-3.0 / AFL-3.0 (upstream). Maintained by SISL — one of a set of revived, free, open-source Magento modules kept working on the latest releases.

Maintained by SISL

Maintained fork by SISLMagento 2 development and modules. More self-hosted plugins: SISL Marketplace.