Home

Awesome

IntegerNet_RewriteMap Magento Module

<div align="center">

Latest Version on Packagist Software License Build Status Supported Magento Versions

Coverage Status Quality Score Maintainability

</div>

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

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

    composer require integer-net/magento2-rewritemap
    
  2. Enable module

    bin/magento setup:upgrade
    

Configuration

In your store configuration navigate to Catalog > SEO:

Usage

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

See http://httpd.apache.org/docs/current/rewrite/rewritemap.html for details how to use those files.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Testing

Unit Tests

vendor/bin/phpunit tests/unit

Magento Integration Tests

  1. Configure test database in dev/tests/integration/etc/install-config-mysql.php. Read more in the Magento docs.

  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

If you discover any security related issues, please email bd@integer-net.de instead of using the issue tracker.

Credits

License

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