adcetera/https_www_redirects
Composer 安装命令:
composer require adcetera/https_www_redirects
包简介
HTTPS/WWW Redirects - Allows site admins to force a site to use HTTPS, WWW or both.
README 文档
README
This module allows site admins to force a site to use "https," "www," or both in URLs.
Note
- After saving the configuration, Drupal's cache will be flushed.
- After saving, you may be logged out of Drupal as the site's domain or scheme may have changed based on settings applied.
Overrides
Both settings (forced HTTPS or WWW) can be overridden in either the module configuration page or in the settings.php file.
Overriding in settings.php
To override either setting, add the following to the bottom of the settings.php file:
/** * Ignore forced https */ $config['https_www_redirects.settings']['bypass_https_hosts'] = [ 'example.org', 'example.com', ]; /** * Ignore forced www */ $config['https_www_redirects.settings']['bypass_www_hosts'] = [ 'local.lndo.site', 'example.org' ];
Note
- By default, 'localhost' or '127.0.0.1' hosts will be excluded from redirection settings in the module.
统计信息
- 总下载量: 186
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2022-07-08