CustomUrlRewrite - Automatic URL Conflict Resolution

Rozwiązuj konflikty adresów produktów podczas zapisu w Magento 2. CustomUrlRewrite sprawdza istniejące przepisy URL i dobiera wolny klucz z kolejnym sufiksem numerycznym.
SKU
CustomUrlRewrite
€15.38
Email to a Friend

Enquire about this product

Description / CustomUrlRewrite - Automatic URL Conflict Resolution

MAGENTO 2 · CATALOG · URLS

Resolve URL conflicts when saving a product.

Kowal CustomUrlRewrite

Kowal CustomUrlRewrite automates the search for an available URL key. When an address is already taken, it checks the next numeric suffixes, reducing manual collision fixes in the catalog.

Collision detection · Numeric suffixes · Save automation

HOW IT WORKS IN PRACTICE

01 · You save a product
The module reads the product URL key.

02 · It checks existing addresses
It verifies collisions in the URL rewrite table.

03 · It selects an available key
If there is a conflict, it checks the next suffixes: -1, -2, and so on.

What does your store gain?

Explore the module features, how to use it, and the settings you can adapt to your sales process.

Unique product URLs without manual conflict resolution

Kowal_CustomUrlRewrite is a Magento module that automatically manages the uniqueness of product URLs, eliminating issues related to duplication. With our module, you can reduce errors caused by address conflicts during saving, organize URLs for SEO, and streamline product management in your store.

Key Features

  • Automatic URL Conflict Resolution: The module automatically detects existing URLs and adds a numeric suffix to find an available URL key. This reduces the risk of errors when saving products.
  • SEO Improvement: Unique URLs are essential for search engine optimization. The module ensures that each product has a unique and SEO-friendly URL, which can have a positive impact on your store rankings.
  • Easy Integration: The module integrates with the native Magento URL rewrite system without requiring complex configuration or core system modifications.
  • Optimal Performance: It checks existing addresses in the URL rewrite table. Automation reduces manual conflict resolution; the impact on save time depends on the catalog size and the number of collisions.
  • Flexibility and Extensibility: The logic for creating unique addresses can be customized through code extension to match business needs. The current version uses consecutive numeric suffixes.

Benefits for You

  • Save time with automatic URL management.
  • Eliminate errors related to duplicate product URLs.
  • Organize addresses to support your store visibility in search engines.
  • Manage addresses more easily in a large product catalog.

Installation

Installing the Kowal_CustomUrlRewrite module is quick and simple. You can install the module in two ways: using a ZIP file or Composer.

Method 1: Installation from a ZIP File

  1. Unzip the ZIP file: Extract the module to app/code/Kowal, into the subdirectory matching its registration — in the verified code, this is CustomUrlChecker.
  2. Enable the module: Run the command:

    php bin/magento module:enable Kowal_CustomUrlChecker

  3. Apply updates: Update the database by running:

    php bin/magento setup:upgrade

    In production, use the --keep-generated option according to your store deployment procedure.
  4. Clear the cache: Complete the installation by clearing the cache:

    php bin/magento cache:flush

Method 2: Installation via Composer

  1. Add the Composer repository: Configure the repository that provides the purchased package. The command below from the previous instruction applies to repo.magento.com and is valid only if the package is available there:

    composer config repositories.repo.magento.com composer https://repo.magento.com/

  2. Install the module: Run the command:

    composer require kowal/module-customurlrewrite

  3. Enable the module: Enable the module using the command:

    php bin/magento module:enable Kowal_CustomUrlChecker

  4. Apply updates: Update the database:

    php bin/magento setup:upgrade

    In production, use the --keep-generated option according to your store deployment procedure.
  5. Clear the cache: Clear the cache to complete the installation:

    php bin/magento cache:flush

With the Kowal_CustomUrlRewrite module, managing URLs in Magento will become simpler, more efficient, and better optimized for SEO. Order now and enhance your store functionality!

Example and module name

If the key produkt conflicts with an existing address, the module checks produkt-1, then produkt-2, and subsequent suffixes. In the verified code, searched paths end with .html.

The commercial name and package remain CustomUrlRewrite / kowal/module-customurlrewrite. The older instruction indicated Kowal_CustomUrlRewrite, while the verified version registers the module as Kowal_CustomUrlChecker; this name should be used when enabling it.

From configuration to result

1. You save a product
The module reads the product URL key.

2. It checks existing addresses
It verifies collisions in the URL rewrite table.

3. It selects an available key
If there is a conflict, it checks the next suffixes: -1, -2, and so on.

From conflict to available address

Base key: produkt

Address taken: produkt.html

Next checks:
produkt-1.html → produkt-2.html

The verified version of the code searches for paths ending with .html.

Organize addresses in your Magento catalog

Want to adapt the module to your store? Ask about Kowal CustomUrlRewrite implementation and discuss the configuration or necessary extensions.

More Information

Theme compatibility Luma / Blank, KOWAL

Module Installation Instructions

Installation

* In a production environment, please use the --keep-generated option

Type: Composer

  1. The module is available in the Composer repository:
    • Private GitLab repository: https://gitlab.com
  2. Add the Composer repository to the configuration:
    composer config repositories.custom.url.write vcs https://gitlab.com/magento2ext/magento-2-customurlrewrite
  3. Add an access token for the private GitLab repository:
    composer config --auth gitlab-token.gitlab.com 
  4. Install the module using Composer:
    composer require kowal/module-customurlrewrite
  5. Apply database updates:
    php bin/magento setup:upgrade
  6. Clear the cache:
    php bin/magento cache:flush
Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: CustomUrlRewrite - Automatic URL Conflict Resolution
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Questions and Answers

Question
Does the module automatically detect and resolve URL conflicts in my Magento 2 store?
Answer
Yes — the module analyzes situations where duplicates or collisions occur in URLs (e.g., the same “URL Key” for different products/categories) and suggests or automatically creates rewrites/redirects to avoid 404 errors and SEO issues.
Question
Does installing the module require modifying Magento core files or the theme?
Answer
No — the module works as a standard extension for Magento 2, is compatible with the system architecture, and does not require overwriting core files or making deep changes to the store theme.
Question
Does the module work in installations with multiple stores (multi-store) and multiple store views?
Answer
Yes — the module supports standard Magento 2 mechanisms for multi-store and store views, allowing you to manage URL rewrites and conflicts independently for different stores/views.
Question
Does the module negatively affect store performance, especially in large catalogs with high traffic?
Answer
The impact is minimal — the module mainly operates in the area of URL and redirect management, which should not significantly burden the system. However, with a very large number of products/categories, testing in a staging environment is always recommended.
Question
Does the module support Magento 2.3.x and 2.4.x versions?
Answer
Yes — the module was designed for standard Magento 2 versions (including 2.3.x and 2.4.x). Before installation, it is always worth checking the compatibility list in the module documentation.
Question
Do I receive technical support and updates after purchasing the module?
Answer
Yes — the manufacturer provides technical support and updates for the module, ensuring compatibility with future Magento versions and URL structure changes.
Update cookie preferences