b4djo / yii2-redirect301
Redirect 301
Installs: 10
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- b4djo/yii2-redirect301: dev-master
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2021-12-26 03:54:06 UTC
README
Redirect 301
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist b4djo/yii2-redirect301 "*"
or add
"b4djo/yii2-redirect301": "*"
to the require section of your composer.json
file.
In your config file:
'bootstrap' => ['redirect301'], 'modules' => [ ... 'redirect301' => [ 'class' => 'b4djo\redirect301\Module', ], ] 'components' => [ ... 'redirect301' => [ 'class' => 'b4djo\redirect301\components\Redirect', ], ]
Migrations:
yii migrate --migrationPath=@vendor/b4djo/yii2-redirect301/migrations