Yii2-external-links (Компонент замены внешних ссылок для yii2)

Yii2-external-links (Компонент замены внешних ссылок для yii2)

skeeks/yii2-external-links

Instalar

Tiempo de publicación: jueves, 11 de febrero de 2016 (hace 5 años)

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

Categoría: Marketing, publicidad

Versión actual:
1 ene. 1970 3:00:00 (hace 51 años)

Packagist: skeeks/yii2-external-links

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

:

Tipo: Компонент


//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

Решение проблемы избыточного количества внешних ссылок

Будучи СЕО специалистом, вам приходится решать проблему внешних ссылок, с сайта, который вы продвигаете. Далее простое готовое решение для yii2 проекта.

Más

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

(гость)


Mostrando 1-1 de 1 elemento.

todos los comentarios (0)
Sin comentarios

dev-master — 1 ene. 1970 3:00:00 (hace 51 años)

1.1.3 — 1 ene. 1970 3:00:00 (hace 51 años)

1.1.4 — 1 ene. 1970 3:00:00 (hace 51 años)

1.1.2.1 — 1 ene. 1970 3:00:00 (hace 51 años)

1.1.2 — 1 ene. 1970 3:00:00 (hace 51 años)

1.1.1 — 1 ene. 1970 3:00:00 (hace 51 años)

1.1.0 — 1 ene. 1970 3:00:00 (hace 51 años)

1.0.1 — 1 ene. 1970 3:00:00 (hace 51 años)

1.0.0 — 1 ene. 1970 3:00:00 (hace 51 años)

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

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

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

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


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