Skip to content

fedornabilkin/yii2-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Downloads

Redirect manager, not found finder

Find and save page not found, add new path.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fedornabilkin/yii2-redirect "*"

or add

"fedornabilkin/yii2-redirect": "*"

to the require section of your composer.json file.

Migrations

php yii migrate --migrationPath=@fedornabilkin/redirect/migrations

Settings

add backend config

'modules' => [
    'redirect' => [
        'class' => fedornabilkin\redirect\Module::class,
        'frontendHost' => 'http://site.ru', // Go to page from admin panel
    ],
],

Usage

Add controller actions

public function actions()
{
    return [
        'error' => [
            'class' => \fedornabilkin\redirect\actions\ErrorAction::class,
        ],
    ];
}

Manager path

You must restrict access to the controller!

/redirect/manager

yii2-redirect

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages