midweste / slimredirects
将请求重定向到不同的域名。支持通配符、正则表达式、HTTP 到 HTTPS 的重定向。
0.1.13
2021-12-02 17:23 UTC
Requires
- php: >=7.2
- laminas/laminas-httphandlerrunner: ^1.2
- psr/http-message: ^1.0
- slim/http-cache: ^1.0
- slim/psr7: ^1.1
Requires (Dev)
- infection/infection: ^0.16.3
- phing/phing: ^2.16
- phpunit/phpunit: ^9.2
- squizlabs/php_codesniffer: ^3.2.0
README
基于PSR7的重定向库。支持通配符、正则表达式、HTTP 到 HTTPS 的重定向。查询字符串处理
-主机重定向支持 -忽略请求匹配时的尾部斜杠 -假设 http://localhost 是 http://localhost/ -查询字符串 --默认为请求和规则的组合,规则覆盖请求 --规则片段覆盖请求片段 --规则用户信息覆盖请求用户信息
待办事项
-"/wild/card/*/?old=querystring" 只有在存在 qs 时匹配