User Tools

Site Tools


Sidebar

magento_2:url_rewrites_regenerator

For more details see how the URL Rewrites Regenerator for Magento 2 works.

Guide for URL Rewrites Regenerator for Magento 2

Regenerate URLs rewrites in bulk directly from the Magento 2 admin panel. Run regeneration for all or specific categories and products to make their URLs SEO-friendly.

  • Rewrite URLs for categories and products without the command line
  • Apply all default Magento SEO settings
  • Regenerate URLs for specific store views
  • Skip reindex and cache flush
  • Hyva-compatible by default
The extension supports all default Magento SEO options. Go here to find out more about the features provided out of the box.

Configuration

To configure the regeneration process, navigate to Stores → Configuration → Amasty Extensions → URL Rewrites Regenerator.

General

Enabled - set to Yes to activate the module.

Skip Reindex - choose Yes if you don't want to reindex after each URL regeneration. If enabled, keep in mind that you will have to run reindexation manually when the regeneration process is completed.

Skip Cache Flush and Cache Clean - enable the option to postpone cache flushing and cleaning, similar to reindexation.

Url Rewrites For Categories

Include Categories to Regeneration - set to Yes to rewrite URLs for categories.

Choose Category Range to Regenerate - enable the option if you want to apply URL updates for multiple categories.

Category ID Range to Regenerate - here you can specify the particular range of categories to regenerate (e.g. 1-20)

Choose Category IDs to Regenerate - if enabled, you'll be able to set particular category IDs and implement the changes to them.

Category IDs to Regenerate - provide comma-separated list of IDs to rewrite URLs (e.g. 25,47,56).

Url Rewrites For Products

Include Products to Regeneration - select Yes to add product URLs to the regeneration queue.

Choose Product Range to Regenerate - enable the feature if you want to regenerate links for multiple products at once.

Product ID Range to Regenerate - provide the range or products to process (e.g. 1-200).

Choose Product IDs to Regenerate - enable the option to regenerate URLs for specific products.

Product IDs to Regenerate - fill in comma-separated product IDs (e.g. 12,25, 36).

URL Rewrites Regeneration

Regenerate URL Rewrites for Store Views - choose all store views or a particular one to regenerate URLs.

Start Regeneration - click the button to run regeneration.

Regeneration Process

When regeneration starts, you can keep an eye on the process using the information in popups. If you regenerate URLs for both categories and products, you will see the results separately.

For categories it looks like this:

Click Next Step to regenerate URLs for products and view the results.

Also, if you want to stop regeneration, you'll have to confirm your decision in the warning popup.

If you reload the page or close the window (intentionally or accidentally), the process will still run in the background. You'll see the progress below the Start Regeneration button. Stop the process if needed.

CLI Commands

All extension actions can be executed using the command line. It can be useful in cases of auto-deploy or automatic updates, during which some rewrites may be required.

Available CLI commands:

amurlrewrites:regenerate - running this command without the options will regenerate URL rewrites for all products in all stores. After execution, reindex and cache flushing and cleaning will be executed as well.

Available options:

store-id - start regeneration only for a specific store, e.g store-id = 2;

entity-type - select which entity to process - product or category;

no-reindex - do not start reindex after the command process (by default it starts);

no-cache-flush - do not start the cache flushing (by default it is launched);

no-cache-clean - do not start the cache cleaning;

ids-range - set the range of category or product IDs for regenerating URL rewrites, e.g. 100-123;

ids - specify category or product IDs for regeneration, separated by comma e.g 1,2,3 .


Find out how to install the URL Rewrites Regenerator extension for Magento 2 via Composer.
Rate the user guide
 stars  from 2 votes (Details)
magento_2/url_rewrites_regenerator.txt · Last modified: 2024/02/26 11:08 by asemenova