midweste / slimredirects
Redirect a request to a different domain. Supports wildcard, regex, http to https redirection.
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 Based Redirect library. Supports wildcard, regex, http to https redirection. Query string handling
-Host redirection support -Trailing slash is ignored for request matching -Assumes http://localhost is http://localhost/ -Querystring --Defaults to combination of request and rule with rule overridding request where matching --Rule fragment overrides request fragment --Rule user info overrides request user info
TODO
-"/wild/card/*/?old=querystring" match only when qs present