PHPackages                             pierrestoffe/craft-language-redirector - 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. pierrestoffe/craft-language-redirector

ActiveCraft-plugin[Localization &amp; i18n](/categories/localization)

pierrestoffe/craft-language-redirector
======================================

Automatically redirect visitors to their preferred language

3.1.3(1y ago)1634.0k↓25%6[2 issues](https://github.com/pierrestoffe/craft-language-redirector/issues)[1 PRs](https://github.com/pierrestoffe/craft-language-redirector/pulls)MITPHPCI failing

Since Jul 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pierrestoffe/craft-language-redirector)[ Packagist](https://packagist.org/packages/pierrestoffe/craft-language-redirector)[ RSS](/packages/pierrestoffe-craft-language-redirector/feed)WikiDiscussions v3 Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (33)Used By (0)

Language Redirector plugin for Craft CMS 5.x
============================================

[](#language-redirector-plugin-for-craft-cms-5x)

This plugin automatically redirects visitors to their preferred language

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

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

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

[](#installation)

To install the plugin, either use the Plugin Store (in the Craft Control Panel) or follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require pierrestoffe/craft-language-redirector

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Language Redirector.

Language Redirector Overview
----------------------------

[](#language-redirector-overview)

If you've ever developed a multilingual website, you've probably thought about automatically redirecting your visitors to their preferred language. While it may have sounded simple at first, you obviously eventually realised it wasn't. Indeed, you have to take quite a few parameters into account:

- The Sites defined in Craft
- The languages used in your Sites
- The language chosen in the language switcher
- The language(s) accepted by your visitor's browser
- Whether the Entry exists in the target language

Language Redirector mixes all these parameters and provides you with an easy-to-implement solution.

Configuring Language Redirector
-------------------------------

[](#configuring-language-redirector)

By default, Language Redirector will use all of your defined sites as the site/language combinations to redirect visitors. If you wish to override the defaults (to say rename or remove a site), you can:

1. Copy the config.php file provided at the root of the plugin directory to the `config` folder of your Craft install.
2. Name it `language-redirector.php`.
3. Assign sites to languages in the `languages` array, either using their handle or their ID. For example: `'en' => 'english'` or `'fr' => 5`. Don't forget that the configuration file is multi-environment friendy, just like any other Craft config file.

If you feel like it, you can also rename the URL query parameter name and the session key. By default, they are both set to 'lang'.

Read [the wiki](https://github.com/pierrestoffe/craft-language-redirector/wiki) for more information.

Brought to you by [Pierre Stoffe](https://pierrestoffe.be)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance41

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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 ~79 days

Recently: every ~31 days

Total

32

Last Release

394d ago

Major Versions

1.5.3 → 2.0.02022-05-15

2.0.1 → 3.0.02024-04-21

2.0.2 → 3.1.22024-12-02

1.5.4 → v3.x-dev2024-12-16

v1.x-dev → v2.x-dev2025-04-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1706605?v=4)[Pierre Stoffe](/maintainers/pierrestoffe)[@pierrestoffe](https://github.com/pierrestoffe)

---

Top Contributors

[![pierrestoffe](https://avatars.githubusercontent.com/u/1706605?v=4)](https://github.com/pierrestoffe "pierrestoffe (129 commits)")[![francoislevesque](https://avatars.githubusercontent.com/u/14022409?v=4)](https://github.com/francoislevesque "francoislevesque (3 commits)")[![boboldehampsink](https://avatars.githubusercontent.com/u/378974?v=4)](https://github.com/boboldehampsink "boboldehampsink (2 commits)")[![jcherniak](https://avatars.githubusercontent.com/u/1727656?v=4)](https://github.com/jcherniak "jcherniak (1 commits)")[![vieko](https://avatars.githubusercontent.com/u/48670?v=4)](https://github.com/vieko "vieko (1 commits)")

---

Tags

craft-plugincraftcmslanguagescmsCraftcraftcmscraft-pluginlanguage redirector

### Embed Badge

![Health badge](/badges/pierrestoffe-craft-language-redirector/health.svg)

```
[![Health](https://phpackages.com/badges/pierrestoffe-craft-language-redirector/health.svg)](https://phpackages.com/packages/pierrestoffe-craft-language-redirector)
```

###  Alternatives

[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

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