esign/craft-multi-site-language-redirect 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

esign/craft-multi-site-language-redirect

最新稳定版本:1.0.4

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

Stable Version Total Downloads

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

Screenshot Screenshot

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-09-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固