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

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

skeeks/yii2-external-links

Installer

Heure de publication: jeudi 11 février 2016 (il y a 8 ans)

Créé par: Семенов Александр Сергеевич

Catégorie: Marketing, publicité

Version actuelle:
1 janv. 1970 à 03:00:00 (il y a 54 ans)

Packagist: skeeks/yii2-external-links

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

:

Type: Компонент


//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 проекта.

Plus

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

(гость)


Affichage de 1-1 sur 1 élément.

Tous les commentaires (0)
Sans commentaires

dev-master — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.1.4 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.1.3 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.1.2.1 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.1.2 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.1.1 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.1.0 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.1 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.0 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

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

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

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

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


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