Skip to content

Magento 2 extension which add feature of regenerating a url rewrites of products/categories

License

AFL-3.0, OSL-3.0 licenses found

Licenses found

AFL-3.0
LICENSE_AFL.txt
OSL-3.0
LICENSE_OSL.txt
Notifications You must be signed in to change notification settings

quyendam2612/magento2-regenerate_url_rewrites

 
 

Repository files navigation

“Regenerate Url rewrites” extension

Magento 2 "Regenerate Url rewrites" extension add a CLI feature which allow to regenerate a Url rewrites of products/categories in all stores or specific store. Extension homepage: https://github.com/olegkoval/magento2-regenerate_url_rewrites

INSTALLATION

COMPOSER INSTALLATION

  • run composer command:

$> composer require olegkoval/magento2-regenerate-url-rewrites

MANUAL INSTALLATION

  • extract files from an archive

  • deploy files into Magento2 folder app/code/OlegKoval/RegenerateUrlRewrites

ENABLE EXTENSION

  • enable extension (use Magento 2 command line interface *):

$> bin/magento module:enable OlegKoval_RegenerateUrlRewrites

  • to make sure that the enabled module is properly registered, run 'setup:upgrade':

$> bin/magento setup:upgrade

  • [if needed] re-deploy static view files:

$> bin/magento setup:static-content:deploy

HOW TO USE IT:

  • to re-generate all Url rewrites of the categories/products in all stores (it support a multistores) run:

$> bin/magento ok:urlrewrites:regenerate

  • to regenerate all Url rewrites of the categories/products in the specific store view (e.g.: store view id is "2"):

$> bin/magento ok:urlrewrites:regenerate 2 or $> bin/magento ok:urlrewrites:regenerate --storeId=2

  • to save a current URL rewrites (e.g.: you've updated a name of product(s)/category(-ies) and want to get a new URL rewites and save current):

$> bin/magento ok:urlrewrites:regenerate --save-old-urls

  • to do not run full reindex at the end of Url rewrites generation:

$> bin/magento ok:urlrewrites:regenerate --no-reindex

  • also you can combine a options:

$> bin/magento ok:urlrewrites:regenerate 2 --save-old-urls or $> bin/magento ok:urlrewrites:regenerate --storeId=2 --save-old-urls

Enjoy!

Best regards, Oleg Koval


* see: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands.html

About

Magento 2 extension which add feature of regenerating a url rewrites of products/categories

Resources

License

AFL-3.0, OSL-3.0 licenses found

Licenses found

AFL-3.0
LICENSE_AFL.txt
OSL-3.0
LICENSE_OSL.txt

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%