b4djo/yii2-redirect301

Redirect 301

dev-master 2017-03-20 10:54 UTC

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

Usage