定制 flownative/rulebasedredirects 二次开发

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

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

flownative/rulebasedredirects

最新稳定版本:v1.0.0

Composer 安装命令:

composer require flownative/rulebasedredirects

包简介

Implements rule-based redirects for Flow applications

README 文档

README

MIT license Packagist Maintenance level: Friendship

Rule-Based Redirects for Flow

This package uses a PSR middleware to redirect requests to URLs using regular expression based rules.

It can be used to implement such redirect rules in cases where you cannot use the native ways of implementing them in your webserver (e.g. nginx or Apache httpd.)

Installation

composer require flownative/rulebasedredirects

Usage

As soon as the package is installed, the rules given in Flownative.RuleBasedRedirects.rules take effect. Here is an example:

Flownative:
  RuleBasedRedirects:
    rules: []
      - host: '/^www\.acme\.com$/'
        path: '/^\/foo\/(.*)$/'
        target: 'https://www.acme.com/elsewhere/$1'
        status: 301

统计信息

  • 总下载量: 5.47k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-09