esign/craft-multi-site-language-redirect
Composer 安装命令:
composer require esign/craft-multi-site-language-redirect
包简介
automatically redirects users to the appropriate site in a Craft CMS multisite setup based on their browser language or previously selected language.
README 文档
README
Automatically redirects users to the appropriate site in a Craft CMS multisite setup based on their browser language or previously selected language.
Requirements
This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.
Installation
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require esign/craft-multi-site-language-redirect # tell Craft to install the plugin ./craft plugin/install multi-site-language-redirect
From the Plugin Store
Go to the Plugin Store in your project's Control Panel and search for "MultiSite Language Redirect". Then press "Install".
Configuration
Route Exclusions
You can exclude specific routes from language redirection in two ways:
Global Excluded Routes
Routes that should be excluded across all site groups. These are useful for system routes like /robots.txt or API endpoints.
Site Group Specific Excluded Routes
Routes that should be excluded only for specific site groups. This allows for more granular control when different site groups have different requirements.
Wildcard Support
Both global and site group specific exclusions support wildcard matching using *:
/api/*- Excludes all routes starting with/api//special-*- Excludes routes like/special-page,/special-content, etc.
Configuration via Settings
Configure route exclusions through the plugin settings in the Craft CMS control panel under Settings → Plugins → MultiSite Language Redirect.
Configuration via Config File
For advanced configuration, you can also manage plugin settings through a config file. Create config/multi-site-language-redirect.php in your Craft project and copy the settings from the example configuration file.
License
This plugin is licensed under the Craft License. Please see LICENSE.md for more information.
Screenshot
esign/craft-multi-site-language-redirect 适用场景与选型建议
esign/craft-multi-site-language-redirect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 28 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 esign/craft-multi-site-language-redirect 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 esign/craft-multi-site-language-redirect 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-09-01

