定制 adcetera/https_www_redirects 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2022-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固