PHPackages                             fisheye/module-url-rewrite-optimiser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fisheye/module-url-rewrite-optimiser

ActiveMagento2-module

fisheye/module-url-rewrite-optimiser
====================================

A Magento module that stops URL rewrites with category paths being generated for products when 'Use Categories Path for Product URLs' setting is disabled in config.

1.1.0(3y ago)59236.2k↓12.8%6[3 issues](https://github.com/fisheyehq/module-url-rewrite-optimiser/issues)MITPHPPHP ^7.4 || ^8.0

Since Sep 6Pushed 2y ago9 watchersCompare

[ Source](https://github.com/fisheyehq/module-url-rewrite-optimiser)[ Packagist](https://packagist.org/packages/fisheye/module-url-rewrite-optimiser)[ RSS](/packages/fisheye-module-url-rewrite-optimiser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

Fisheye\_UrlRewriteOptimiser
============================

[](#fisheye_urlrewriteoptimiser)

Overview
--------

[](#overview)

A Magento module that stops URL rewrites with category paths being generated for products when 'Use Categories Path for Product URLs' setting is disabled in config.

Features
--------

[](#features)

- Stop needless URL rewrites for products that include category paths being created
- Only applies when 'Use Categories Path for Product URLs' setting is set to 'No'

> Note: this extension will only prevent category path based URL rewrites from being created. Removing existing URL rewrites will need to be managed separately (though may be added in a future version).

Issue
-----

[](#issue)

To highlight the issue (and purpose of this module) see the 2 scenarios below

### Without module enabled

[](#without-module-enabled)

[![Without module enabled](./media/url-rewrites-with-categories.jpg)](./media/url-rewrites-with-categories.jpg)

- 'Joust Duffle Bag' product is in 2 categories ('Gear' and 'Bags')
- 4 product URL rewrite records are created for this product
    - 1 for the direct product URL
    - 3 for category path URLS (2 for the categories the product is associated to and also the root category...)
- Overall 580 product URL rewrite records are created (using Magento's default sample data of 189 visible products and 39 categories)

### With module enabled

[](#with-module-enabled)

[![Without module enabled](./media/url-rewrites-without-categories.jpg)](./media/url-rewrites-without-categories.jpg)

- 'Joust Duffle Bag' product now just has 1 URL rewrite record for the direct path
- Overall reduced to 189 product URL rewrite records (i.e. 1 per visible product)
- Scale that up to thousands of products, categories, websites and store views and the space saved in the `url_rewrite` table could be huge!

Compatibility
-------------

[](#compatibility)

- PHP 7.x
- Magento Open Source / Commerce Edition 2.1.x / 2.2.x (may work on older versions, but untested)

Installation
------------

[](#installation)

```
composer require fisheye/module-url-rewrite-optimiser
php bin/magento module:enable Fisheye_UrlRewriteOptimiser
php bin/magento setup:upgrade

```

Cleanup
-------

[](#cleanup)

If you installed this extension to prevent product rewrites with a category path being generated and you want to clean up your existing rewrites by removing them, run this query;

```
DELETE FROM url_rewrite
  WHERE is_autogenerated = 1          AND request_path LIKE '%/%'
  AND target_path LIKE '%/category/%' AND target_path  LIKE '%/product/%'
  AND entity_type = 'product'         AND metadata     LIKE '%category_id%';
```

Contributing
------------

[](#contributing)

Issues, forks and pull requests welcomed :)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~504 days

Total

4

Last Release

1299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43f3b3a59dc942417211200d258cff022a5208536f9965bf4de8bc1c369fefc8?d=identicon)[John Hughes](/maintainers/John%20Hughes)

---

Top Contributors

[![johnhughes1984](https://avatars.githubusercontent.com/u/3949917?v=4)](https://github.com/johnhughes1984 "johnhughes1984 (10 commits)")[![NathanDayFE](https://avatars.githubusercontent.com/u/68845089?v=4)](https://github.com/NathanDayFE "NathanDayFE (1 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (1 commits)")[![pykettk](https://avatars.githubusercontent.com/u/40261741?v=4)](https://github.com/pykettk "pykettk (1 commits)")

---

Tags

corefisheyemagento2magento2-module

### Embed Badge

![Health badge](/badges/fisheye-module-url-rewrite-optimiser/health.svg)

```
[![Health](https://phpackages.com/badges/fisheye-module-url-rewrite-optimiser/health.svg)](https://phpackages.com/packages/fisheye-module-url-rewrite-optimiser)
```

###  Alternatives

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2832.5M](/packages/elgentos-regenerate-catalog-urls)[faonni/module-indexer-url-rewrite

Extension rebuild UrlRewrite index.

4072.4k](/packages/faonni-module-indexer-url-rewrite)[aune-io/magento2-product-category-url-fix

Product category url fix for Magento 2

165.9k](/packages/aune-io-magento2-product-category-url-fix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
