Publication time: Thursday, February 11, 2016 (4 years ago)

Created by: Семенов Александр Сергеевич

Category: Marketing, Advertising

Current version: 1.1.2.1
Jan 24, 2019, 12:45:31 AM (a year ago)

Packagist: skeeks/yii2-external-links

: https://github.com/skeeks-semenov/yii2-external-links

: 2142 (Per month: 55)

Type of: Компонент


//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',
        ],
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

 

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',

            //Additional
            'enabled'                           => true,
            'noReplaceLocalDomain'              => true,
            'backendRoute'                      => '/externallinks/redirect/redirect',
            'backendRouteParam'                 => 'url',
            'enabledB64Encode'                  => true,
            'noReplaceLinksOnDomains'           => [
                'site1.ru',
                'www.site1.ru',
                'site2.ru',
            ],
        ],

        'urlManager' => 
        [
            'rules' => 
            [
                //Rewriting the standard route
                //And add robots.txt  Disallow: /~*
                '~skeeks-redirect'                        => '/externallinks/redirect/redirect',
            ]
        ]
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

 

AutoCorrect external links after rendering html page

Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/yii2-external-links "*"

or add

"skeeks/yii2-external-links": "*"

How to use (simple)

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',
        ],
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

How to use (advanced)

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',

            //Additional
            'enabled'                           => true,
            'noReplaceLocalDomain'              => true,
            'backendRoute'                      => '/externallinks/redirect/redirect',
            'backendRouteParam'                 => 'url',
            'enabledB64Encode'                  => true,
            'noReplaceLinksOnDomains'           => [
                'site1.ru',
                'www.site1.ru',
                'site2.ru',
            ],
        ],

        'urlManager' => 
        [
            'rules' => 
            [
                //Rewriting the standard route
                //And add robots.txt  Disallow: /~*
                '~skeeks-redirect'                        => '/externallinks/redirect/redirect',
            ]
        ]
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

Screenshot

SkeekS CMS admin panel


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com

Solving the problem of an excessive amount of external links

Being a SEO specialist, you have to solve the problem of external links from the site that you promote. Next, a simple ready-made solution for the yii2 project.

More

CHANGELOG

1.1.1

  • replacing references only after <body

1.1.0

  • remove callback property
  • EVENT_BEFORE_PROCESSING before process replace
  • fix bug whith redirects

1.0.1

  • fix bug whith redirects

1.0.0

  • Stable release

(гость)


Showing 1-1 of 1 item.

All Comments (0)
No Comments

dev-master — Jan 24, 2019, 12:45:31 AM (a year ago)

1.1.2.1 — Jan 24, 2019, 12:45:31 AM (a year ago)

1.1.2 — Nov 24, 2017, 12:53:27 AM (2 years ago)

1.1.1 — Jun 23, 2016, 2:03:45 PM (4 years ago)

1.1.0 — Feb 11, 2016, 10:43:13 PM (4 years ago)

1.0.1 — Feb 11, 2016, 6:37:18 PM (4 years ago)

1.0.0 — Feb 11, 2016, 12:53:14 AM (4 years ago)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"skeeks/yii2-external-links": "*"

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS