PHPackages                             matusstafura/magento2-product-redirect - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. matusstafura/magento2-product-redirect

ActiveMagento2-module[Localization &amp; i18n](/categories/localization)

matusstafura/magento2-product-redirect
======================================

Product redirect module for Magento 2 - creates store-agnostic product links using SKU or ID

v0.2.0(1mo ago)16MITPHPPHP &gt;=8.1

Since Oct 10Pushed 1mo agoCompare

[ Source](https://github.com/matusstafura/magento2-product-redirect)[ Packagist](https://packagist.org/packages/matusstafura/magento2-product-redirect)[ RSS](/packages/matusstafura-magento2-product-redirect/feed)WikiDiscussions main Synced 1mo ago

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

Magento 2 Product Redirect Module
=================================

[](#magento-2-product-redirect-module)

A lightweight Magento 2 module that redirects product links to the correct localized product URLs based on SKU or Product ID.

Problem
-------

[](#problem)

When managing a Magento 2 multi-store setup with different languages, product URLs differ across stores:

- English: `/awesome-product.html`
- French: `/produit-genial.html`
- German: `/tolles-produkt.html`

This module lets you use **one universal link** that automatically redirects to the correct localized product URL based on the current store.

Features
--------

[](#features)

✅ **Store-agnostic product links** - One link works across all languages
✅ **SEO-friendly 301 redirects** - Passes link equity to final product URLs
✅ **Supports SKU and Product ID** - Use whichever identifier suits your workflow
✅ **Zero configuration** - Works immediately after installation
✅ **Magento 2.4.7 compatible** - Uses modern `HttpGetActionInterface`
✅ **Lightweight** - No database changes, no admin configuration

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Magento &gt;= 2.4.7
- Composer (optional, for installation via composer)

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

[](#installation)

### Option 1: Manual Installation

[](#option-1-manual-installation)

1. Create module directory:

```
mkdir -p app/code/MatusStafura/ProductRedirect
```

2. Copy all module files to `app/code/MatusStafura/ProductRedirect/`
3. Enable the module:

```
php bin/magento module:enable MatusStafura_ProductRedirect
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
```

Usage
-----

[](#usage)

### Using SKU (Recommended)

[](#using-sku-recommended)

Create links using product SKU:

```
Check out this product
Red Shirt - Large
Joust Duffle Bag
```

### Using Product ID

[](#using-product-id)

Create links using product ID:

```
View Product
Another Product
```

Use Cases
---------

[](#use-cases)

Perfect for:

- **Blog posts** shared across multiple store views
- **Email campaigns** sent to international customers
- **Social media** posts linking to products
- **Print materials** with QR codes
- **Affiliate links** that work globally
- **Internal documentation** referencing products

SEO Benefits
------------

[](#seo-benefits)

- **301 permanent redirects** preserve link equity
- Redirects to **canonical product URLs** with proper localization
- Search engines credit the **final SEO-friendly URL**, not the redirect
- No duplicate content issues

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

[](#configuration)

No configuration needed! The module works out of the box after installation.

Uninstallation
--------------

[](#uninstallation)

```
php bin/magento module:disable MatusStafura_ProductRedirect
php bin/magento setup:upgrade
php bin/magento cache:flush

# Optionally remove module files
rm -rf app/code/MatusStafura/ProductRedirect
```

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

[](#compatibility)

- ✅ Magento 2.4.7
- ✅ Magento 2.4.6
- ✅ Magento 2.4.5
- ✅ PHP 8.1, 8.2, 8.3

License
-------

[](#license)

MIT License - See [LICENSE](LICENSE) for details.

Support
-------

[](#support)

For issues, questions, or contributions create an issue on GitHub or submit a Pull Request.

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance91

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~172 days

Total

2

Last Release

41d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f56918987521c7c4b77e80e82275ef0ee2be4567bf65f207237f788524938f88?d=identicon)[matusstafura](/maintainers/matusstafura)

---

Top Contributors

[![matusstafura](https://avatars.githubusercontent.com/u/11353888?v=4)](https://github.com/matusstafura "matusstafura (2 commits)")

---

Tags

magento2multistoreproductredirectmagentomultilingualmoduleredirectseoproductmagento2skumulti-store

### Embed Badge

![Health badge](/badges/matusstafura-magento2-product-redirect/health.svg)

```
[![Health](https://phpackages.com/badges/matusstafura-magento2-product-redirect/health.svg)](https://phpackages.com/packages/matusstafura-magento2-product-redirect)
```

###  Alternatives

[imaginaerum/magento2-language-fr-fr

Magento2 French Language Pack (fr\_FR)

41738.1k2](/packages/imaginaerum-magento2-language-fr-fr)[the_it_nerd/module-brasil

The IT Nerd - Magento 2 Brazilian localization module (without translation).

161.3k](/packages/the-it-nerd-module-brasil)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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