Download the PHP package elgentos/regenerate-catalog-urls without Composer
On this page you can find all versions of the php package elgentos/regenerate-catalog-urls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elgentos/regenerate-catalog-urls
More information about elgentos/regenerate-catalog-urls
Files in elgentos/regenerate-catalog-urls
Package regenerate-catalog-urls
Short Description Regenerate Catalog URL Rewrites (products, categories, cms pages)
License OSL-3.0 AFL-3.0
Informations about the package regenerate-catalog-urls
Elgentos Regenerate Catalog URLs
What does it do
This extension adds console commands to be able to regenerate;
- a product rewrite URL based on its url path;
- a category rewrite URL based on its url path;
- a CMS page rewrite URL based on its url path;
- a category URL path based on its URL key and its parent categories.
Install
Using Composer;
Or download and copy the src
directory into app/code/Elgentos/RegenerateCatalogUrls
and run php bin/magento setup:upgrade
.
How to use
Eg:
FAQ
What's the difference between url_key and url_path?
url_key
contains the key, like joust-duffle-bag
for the product "Joust Duffle Bag". The url_path
is generated by taking the url_key
and adding the suffix (which for products is stored in catalog/seo/product_url_suffix
and defaults to .html
). So the url_path
would by default become joust-duffle-bag.html
. It also adds the category slugs of the parent categories so the url_path
might become bags/joust-duffle-bag.html
. However, the use of url_path
has been deprecated since early Magento 2.1 versions (see here). If you are running on a recent Magento 2 version, you can safely delete those values by running DELETE FROM catalog_product_entity_varchar WHERE attribute_id = (SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'url_path' AND entity_type_id = (SELECT entity_type_id FROM eav_entity_type WHERE entity_type_code = 'catalog_product'))
.
URL paths are still used in categories though, so don't remove those.
Why am I getting a 'Duplicated url' warning when running the command?
If you see this error, you have duplicate url_key
values (within a store) in catalog_product_entity_varchar
. You can use this extension to check those (and you need to fix them manually): baldwin/magento2-module-url-data-integrity-checker.
All versions of regenerate-catalog-urls with dependencies
magento/framework Version ^102.0|^103.0
magento/module-catalog-url-rewrite Version ^100.3|^100.4
magento/module-url-rewrite Version ^101.1|^102.0