r39u1 / yii2-redirect
Redirect module for CMF2
1.0.2
2019-11-04 15:01 UTC
Requires
- php: >=7.1.0
- yiisoft/yii2: ~2.0.12
This package is auto-updated.
Last update: 2025-05-05 03:24:05 UTC
README
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist r39u1/yii2-redirect "*"
or add
"r39u1/yii2-redirect": "*"
to the require section of your composer.json
file.
Configure
frontend:
'container' => [
'definitions' => [
\r39u1\redirect\source\RedirectSourceInterface::class => [
'class' => \r39u1\redirect\source\CsvRedirectSource::class,
'csvPath' => '@app/redirect/redirect.csv',
]
],
],
...
'modules' => [
'redirect' => [
'class' => \r39u1\redirect\Module::class,
],
],
...
'bootstrap' => [
'redirect',
],