MultiSite Language Redirect icon

MultiSite Language Redirect

Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

MultiSite Language Redirect

Automatically routes visitors to the most appropriate site based on their browser language or a previously selected language. Perfect for Craft CMS multi-site setups where each site group can have its own default (primary) site.

Why this plugin?

Craft lets you define a single global “Primary site,” but real-world multilingual projects often group sites by region or brand. MultiSite Language Redirect lets you set a primary site per site group, then seamlessly redirects users to the best match, while respecting your exclusions and preferences.

Key features

  • Primary site per site group Define a default landing site for every site group, instead of one global primary site.
  • Automatic language detection Redirects to the best-matching site using the visitor’s Accept-Language (browser language) or a saved preference.
  • Remembers user choice Stores the visitor’s chosen language/site in a cookie (name is configurable).
  • Granular control

    • Ignored HTTP Methods (e.g., skip redirects on POST, PUT, etc.)
    • Global Excluded Routes (never redirect on these)
    • Per-Site-Group Excluded Routes (fine-tune exclusions per group)
    • Disable redirection per site group (opt-out where needed)
  • Works with language switchers When users pick a language/site, their preference is saved and used from then on.

How it works

  1. First visit: If no language cookie is present, the plugin checks the browser’s preferred language(s) and tries to match to one of your sites in the current group.
  2. Fallbacks: If there’s no direct match, the visitor is sent to the group’s Primary site (your chosen default for that group).
  3. Remember: The selected site/language is saved to a cookie so subsequent visits go straight to the user’s preferred site.
  4. Respects your rules: No redirects occur for ignored HTTP methods or excluded routes (global or per group).

Notes on the language cookie

  • Stores only the language/site preference, no personal data.
  • Name is configurable to match your project’s conventions.
  • Used to honor the user’s choice over browser language on subsequent visits.

Important limitation

Redirects only work when your multi-site setup uses path-based or domain-based language segments (e.g. site-a.com/en, site-a.com/fr, site-b.com/nl). Subdomain-based sites (e.g. de.site-a.com, fr.site-a.com) are not supported.

Standard

Plus $5/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
40
Version
1.0.0
License
MIT
Compatibility
Craft 5
Last release
September 1, 2025
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs