Commit 132aac993128057aaf0a4856348fd7f7ea73d470
1 parent
a4d272b1
canonical update3.0 (www)
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
frontend/config/main.php
@@ -108,6 +108,7 @@ return [ | @@ -108,6 +108,7 @@ return [ | ||
108 | ], | 108 | ], |
109 | ],*/ | 109 | ],*/ |
110 | 'urlManager' => [ | 110 | 'urlManager' => [ |
111 | + 'baseUrl' => 'http://www.rukzachok.com.ua', | ||
111 | 'enablePrettyUrl' => true, | 112 | 'enablePrettyUrl' => true, |
112 | 'showScriptName' => false, | 113 | 'showScriptName' => false, |
113 | 'rules' => [ | 114 | 'rules' => [ |
frontend/views/layouts/main.php
@@ -78,7 +78,7 @@ $this->registerJs(" | @@ -78,7 +78,7 @@ $this->registerJs(" | ||
78 | <title><?= Seo::widget([ 'row'=>'title'])?></title> | 78 | <title><?= Seo::widget([ 'row'=>'title'])?></title> |
79 | <?= Seo::widget([ 'row'=>'description'])?> | 79 | <?= Seo::widget([ 'row'=>'description'])?> |
80 | <?= Seo::widget([ 'row'=>'meta'])?> | 80 | <?= Seo::widget([ 'row'=>'meta'])?> |
81 | -<!-- --><?php //$this->registerLinkTag(['rel' => 'canonical', 'href' => Yii::$app->urlManager->baseUrl.Yii::$app->request->url ]); ?> | 81 | + <?php $this->registerLinkTag(['rel' => 'canonical', 'href' => Yii::$app->urlManager->baseUrl.Yii::$app->request->url ]); ?> |
82 | <link rel="shortcut icon" href="<?= Yii::$app->urlManager->baseUrl ?>/img/favicon.ico" type="image/x-icon"/> | 82 | <link rel="shortcut icon" href="<?= Yii::$app->urlManager->baseUrl ?>/img/favicon.ico" type="image/x-icon"/> |
83 | <?php $this->head () ?> | 83 | <?php $this->head () ?> |
84 | 84 |