https://github.com/vdlp/oc-redirectconditionsheader-plugin
Adds Header conditions to the Redirect plugin.
https://github.com/vdlp/oc-redirectconditionsheader-plugin
Last synced: 2 months ago
JSON representation
Adds Header conditions to the Redirect plugin.
- Host: GitHub
- URL: https://github.com/vdlp/oc-redirectconditionsheader-plugin
- Owner: vdlp
- License: other
- Created: 2022-06-11T16:51:23.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-08-04T05:58:02.000Z (11 months ago)
- Last Synced: 2025-11-21T22:09:19.476Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Vdlp.RedirectConditions.Header (extension)
This is an extension plugin for the [Redirect](https://octobercms.com/plugin/vdlp-redirect) plugin for OctoberCMS.
## Requirements
- Plugin `Vdlp.Redirect`
- Plugin `Vdlp.RedirectConditions`
## Conditions
### `HeaderCondition`
On a positive match the redirect will take place if the request matches given condition parameters.
**Condition parameters:**
* Header name (case insensitive)
* Header value (case insensitive)
* Whether to use regular expression for header value matching (see official [preg_match](http://php.net/manual/en/function.preg-match.php) documentation)
## Unit tests
To run the Unit Tests of this plugin, execute the following command from the project root:
```
vendor/bin/phpunit plugins/vdlp/redirectconditionsheader
```
## Questions? Need help?
If you have any question about how to use this plugin, please don't hesitate to contact us at octobercms@vdlp.nl. We're happy to help you. You can also visit the support forum and drop your questions/issues there.