Veröffentlichungszeit: Donnerstag, 11. Februar 2016 (vor 4 Jahren)

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

Kategorie: Marketing, Werbung

Aktuelle Version: 1.1.2.1
24.01.2019, 00:45:31 (vor einem Jahr)

Packagist: skeeks/yii2-external-links

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

: 2085 (Pro Monat: 54)

Typ: Компонент


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

Lösung des Problems der übermäßigen Anzahl externer Links

Als SEO-Spezialist müssen Sie das Problem externer Links auf der von Ihnen beworbenen Website lösen. Als nächstes eine einfache fertige Lösung für das Projekt yii2.

Mehr

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

(гость)


Zeige 1-1 von 1 Eintrag.

Alle Kommentare (0)
Keine Kommentare

dev-master — 24.01.2019, 00:45:31 (vor einem Jahr)

1.1.2.1 — 24.01.2019, 00:45:31 (vor einem Jahr)

1.1.2 — 24.11.2017, 00:53:27 (vor 2 Jahren)

1.1.1 — 23.06.2016, 14:03:45 (vor 4 Jahren)

1.1.0 — 11.02.2016, 22:43:13 (vor 4 Jahren)

1.0.1 — 11.02.2016, 18:37:18 (vor 4 Jahren)

1.0.0 — 11.02.2016, 00:53:14 (vor 4 Jahren)

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

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

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

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


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