mslwk / module-xml-url-rewrites
Magento2 module creating URL rewrites using XML files
Installs: 3 708
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.1.0
- magento/framework: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-04 12:13:24 UTC
README
Magento 2 XML URL Rewrites module
The extension allows to create custom url rewrites in a Magento1-like way using XML files
Installation
Via Composer
To install the extension using Composer use the following commands:
composer require mslwk/module-xml-url-rewrites php bin/magento module:enable MSlwk_XmlUrlRewrites php bin/magento setup:upgrade
From GitHub
You can download the extension directly from GitHub and
put it inside app/code/MSlwk/XmlUrlRewrites
directory. Then run the
following commands:
php bin/magento module:enable MSlwk_XmlUrlRewrites php bin/magento setup:upgrade
Usage
To create new rewrites add etc/url_rewrites.xml
file to your module.
Example:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:MSlwk_XmlUrlRewrites:etc/url_rewrites.xsd">
<rewrites>
<rewrite path="a/b/c" target="catalog/category/view" />
<rewrite path="test" target="catalog/product/view" />
</rewrites>
</config>
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Maciej Sławik - https://github.com/maciejslawik
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details