staempfli / magento2-module-rebuild-url-rewrite
该软件包已废弃,不再维护。未建议替代软件包。
用于分类和产品的 Magento 2 重构 URL 重写
1.1.0
2018-09-06 11:10 UTC
Requires
- php: ^7.0|^7.1
- magento/framework: ~100.1|~101.0
- magento/module-catalog-url-rewrite: 100.1|~100.2
- magento/module-url-rewrite: ~101.0|~100.1
- symfony/console: ~2.3, !=2.7.0
Requires (Dev)
- codeclimate/php-test-reporter: 0.4.0
- magento/marketplace-eqp: ^1.0.5
- phpunit/phpunit: ~6.2.0
This package is auto-updated.
Last update: 2020-09-16 11:58:52 UTC
README
该模块添加了一个 CLI,允许重建以下 URL 重写:`categories`、`products` 和 `cms-pages`。
安装
使用 composer 安装模块
composer require staempfli/magento2-module-rebuild-url-rewrite
使用方法
重建所有内容。
bin/magento urlrewrite:rebuild categories,products,cms-pages
仅重建分类
bin/magento urlrewrite:rebuild categories
仅重建产品
bin/magento urlrewrite:rebuild products
仅重建 CMS 页面
bin/magento urlrewrite:rebuild cms-pages
仅重建特定分类
bin/magento urlrewrite:rebuild categories -c=25,26,27
或产品
bin/magento urlrewrite:rebuild products -p=1,2,3
仅重建特定店铺
bin/magento urlrewrite:rebuild categories -s=1,2
任何组合都是可能的。
查看 --help
获取更多信息
bin/magento urlrewrite:rebuild --help
要求
- PHP: 7.0.x | 7.1.x
- Magento 2.1.x | 2.2.x
支持
如果您对此扩展有任何问题,请在新 GitHub 问题上提出。
贡献
任何贡献都将受到高度赞赏。最好的代码贡献方式是在 GitHub 上发起一个拉取请求。
开发者
Marcel Hauri,以及所有其他 贡献者
许可
版权
(c) 2018, Stämpfli AG