flownative / rulebasedredirects
实现Flow应用的基于规则的跳转
v1.0.0
2022-08-09 14:35 UTC
Requires
- neos/flow: ^7.0 || ^8.0
README
基于规则的Flow跳转
本包使用PSR中间件,通过正则表达式规则将请求重定向到URL。
它可以在无法使用Web服务器(例如nginx或Apache httpd)的本地方式实现这些规则的情况下使用。
安装
composer require flownative/rulebasedredirects
使用
包安装后,Flownative.RuleBasedRedirects.rules
中给出的规则立即生效。以下是一个示例:
Flownative: RuleBasedRedirects: rules: [] - host: '/^www\.acme\.com$/' path: '/^\/foo\/(.*)$/' target: 'https://www.acme.com/elsewhere/$1' status: 301