softcommerce / module-url-rewrite-generator
URL Rewrite Generator Module.
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 12
Type:magento2-module
Requires
- php: ~8.0.0||~8.1.0||~8.2.0||~8.3.0
- magento/module-url-rewrite: ^101|^102
- softcommerce/module-core: *
README
The core purpose of this extension is to provide an easy way of regenerating URL rewrites for Magento 2 using CLI.
Features
- Generate URL rewrites for Category
- Generate URL rewrites for Product
- Generate URL for all active stores
- Delete URL rewrites by entity or store criteria
- Compatible Search Engine Optimization
- Compatible with product URLs that use category paths
- Compatible with both Category and Product URL Suffix
- Create permanent redirects for URLs if URL Key Changed
Compatibility
- Open Source >= 2.4.0
- Commerce On Prem (EE) >= 2.4.0
- Commerce On Cloud (ECE) >= 2.4.0
Installation
Using composer
composer require softcommerceltd/module-url-rewrite-generator
Post Installation
# Enable the module
bin/magento module:enable SoftCommerce_UrlRewriteGenerator
In production mode:
# compile & generate static files
bin/magento deploy:mode:set production
In development mode:
bin/magento setup:di:compile
Usage
Generate URL rewrites for Category
Command options:
bin/magento url_rewrite:category:generate [id|-i]
Example:
# Regenerate URL rewrites for all categories: bin/magento url_rewrite:category:generate # Generate URL rewrites for particular categories with IDs 25 & 26: bin/magento url_rewrite:category:generate -i 25,26
Generate URL rewrites for Product
Please note, products with visibility Not Visible Individually [id: 1] are excluded from URL rewrite generation.
Command options:
bin/magento url_rewrite:product:generate [id|-i]
# Regenerate URL rewrites for all products: bin/magento url_rewrite:product:generate # Generate URL rewrites for particular products with IDs 25 & 26: bin/magento url_rewrite:product:generate -i 25,26
Delete URL rewrites
Command options:
bin/magento url_rewrite:delete [entity|-e || store|-s]
# Delete URL rewrites for entity: product with store IDs: 1 and 2 bin/magento url_rewrite:delete -e product -s 1,2 # Delete URL rewrites for product and category entities with store IDs 1, 2 and 3 bin/magento url_rewrite:delete -e product,category -s 1,2,3
Support
Soft Commerce Ltd
support@softcommerce.io
License
Each source file included in this package is licensed under OSL 3.0.
Open Software License (OSL 3.0).
Please see LICENSE.txt
for full details of the OSL 3.0 license.