PHPackages                             integer-net/magento2-rewritemap - 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. integer-net/magento2-rewritemap

ActiveMagento2-module

integer-net/magento2-rewritemap
===============================

Generate RewriteMap files for Apache from Magento URL rewrites

v1.0.0-alpha(5y ago)31[1 PRs](https://github.com/integer-net/magento2-rewritemap/pulls)MITPHPPHP ~7.2||~7.3||~7.4CI failing

Since Sep 5Pushed 1y ago6 watchersCompare

[ Source](https://github.com/integer-net/magento2-rewritemap)[ Packagist](https://packagist.org/packages/integer-net/magento2-rewritemap)[ RSS](/packages/integer-net-magento2-rewritemap/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (10)Versions (3)Used By (0)

IntegerNet\_RewriteMap Magento Module
=====================================

[](#integernet_rewritemap-magento-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7354682d8db03aeccf217f5b9f984257558fb8693433f45dd1b782a6683fa118/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74656765722d6e65742f6d6167656e746f322d726577726974656d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/integer-net/magento2-rewritemap)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/82b041aa3027d6ee9b98699db8f4f280923feea8535adb2cf09b7303c80c8015/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e74656765722d6e65742f6d6167656e746f322d726577726974656d61702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/integer-net/magento2-rewritemap)[![Supported Magento Versions](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

[![Coverage Status](https://camo.githubusercontent.com/6908485e1539575ff94ed86505c01df8f59f1cc745e449359ecd864fb6cb912b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e74656765722d6e65742f6d6167656e746f322d726577726974656d61703f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/integer-net/magento2-rewritemap/code-structure)[![Quality Score](https://camo.githubusercontent.com/bc0956d673641e1b6f8c36dae97e30b9534a83e0683e2975b87f8600de01aad0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e74656765722d6e65742f6d6167656e746f322d726577726974656d61702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/integer-net/magento2-rewritemap)[![Maintainability](https://camo.githubusercontent.com/e075c39c8f99492b4f8b9aa603d2acc6b9f6a5146c24fc6b35f16021b202f117/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f696e74656765722d6e65742f6d6167656e746f322d726577726974656d61703f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/integer-net/magento2-rewritemap)

---

Generate RewriteMap files for Apache from custom Magento URL rewrites (redirects). This can be useful to re-use the rewrites in a different frontend.

For example, to use the redirects in **Vue Storefront**, a reverse proxy that uses the generated rewrite maps can be configured.

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

[](#installation)

1. Install it into your Magento 2 project with composer:

    ```
    composer require integer-net/magento2-rewritemap

    ```
2. Enable module

    ```
    bin/magento setup:upgrade

    ```

Configuration
-------------

[](#configuration)

In your store configuration navigate to *Catalog &gt; SEO*:

- **Enable Rewrite Maps Generation**: set to "yes" to enable (Default: no)
- **Rewrite Maps Generation Cron Schedule**: configure, when rewrite maps are regenerated (Default: every hour)

Usage
-----

[](#usage)

Rewrite maps are stored in `var/rewrite_maps` as one text file per store and redirect type (301, 302).

See  for details how to use those files.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Testing
-------

[](#testing)

### Unit Tests

[](#unit-tests)

```
vendor/bin/phpunit tests/unit

```

### Magento Integration Tests

[](#magento-integration-tests)

1. Configure test database in `dev/tests/integration/etc/install-config-mysql.php`. [Read more in the Magento docs.](https://devdocs.magento.com/guides/v2.4/test/integration/integration_test_execution.html)
2. Copy `tests/integration/phpunit.xml.dist` from the package to `dev/tests/integration/phpunit.xml` in your Magento installation.
3. In that directory, run

    ```
    ../../../vendor/bin/phpunit
    ```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Bernard Delhez](https://github.com/bernarddelhez)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78e73cb79c6200c1d74eb632e79da9d227041735160b9795a1146537ba58f386?d=identicon)[integer-net](/maintainers/integer-net)

---

Top Contributors

[![schmengler](https://avatars.githubusercontent.com/u/367320?v=4)](https://github.com/schmengler "schmengler (25 commits)")

---

Tags

magento-extensionmagento-modulemagento2-extensionmagento2-modulevuestorefront

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/integer-net-magento2-rewritemap/health.svg)

```
[![Health](https://phpackages.com/badges/integer-net-magento2-rewritemap/health.svg)](https://phpackages.com/packages/integer-net-magento2-rewritemap)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3138.1k](/packages/fredden-magento2-module-javascript-error-reporting)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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