Commit 6824fa47da9d780d6c17100ea65a5fcf59912dde
Merge remote-tracking branch 'origin/master'
Showing
4 changed files
with
14 additions
and
50 deletions
Show diff stats
backend/config/main.php
@@ -96,10 +96,19 @@ | @@ -96,10 +96,19 @@ | ||
96 | ], | 96 | ], |
97 | 'urlManagerFrontend' => [ | 97 | 'urlManagerFrontend' => [ |
98 | 'class' => SeoUrlManager::className(), | 98 | 'class' => SeoUrlManager::className(), |
99 | - 'baseUrl' => '/', | ||
100 | 'enablePrettyUrl' => true, | 99 | 'enablePrettyUrl' => true, |
101 | 'showScriptName' => false, | 100 | 'showScriptName' => false, |
102 | - 'rules' => [], | 101 | + // 'dontShowDefaulPrefix' => true, |
102 | + 'rules' => [ | ||
103 | + '\/robots.txt' => 'site/robots', | ||
104 | + ], | ||
105 | + 'processRoutes' => [ | ||
106 | + 'object/view', | ||
107 | + 'blog/article', | ||
108 | + 'blog/tag', | ||
109 | + 'blog/category', | ||
110 | + 'page/view', | ||
111 | + ], | ||
103 | ], | 112 | ], |
104 | 'sitemap' => [ | 113 | 'sitemap' => [ |
105 | 'class' => Sitemap::className(), | 114 | 'class' => Sitemap::className(), |
@@ -3,4 +3,6 @@ db* | @@ -3,4 +3,6 @@ db* | ||
3 | params-local.php | 3 | params-local.php |
4 | test-local.php | 4 | test-local.php |
5 | settings.php | 5 | settings.php |
6 | -mail.php | ||
7 | \ No newline at end of file | 6 | \ No newline at end of file |
7 | +mail.php | ||
8 | +SitemapDynamic.php | ||
9 | +SitemapStatic.php | ||
8 | \ No newline at end of file | 10 | \ No newline at end of file |
common/config/SitemapDynamic.php deleted
1 | -<?php | ||
2 | - | ||
3 | -return [ | ||
4 | - 1 => [ | ||
5 | - 'entity' => 'common\\models\\Objectkb', | ||
6 | - 'status' => '1', | ||
7 | - 'frequency' => 'daily', | ||
8 | - 'priority' => '0.9', | ||
9 | - 'id' => 1, | ||
10 | - ], | ||
11 | - 2 => [ | ||
12 | - 'entity' => 'artbox\\weblog\\models\\Article', | ||
13 | - 'status' => '1', | ||
14 | - 'frequency' => 'weekly', | ||
15 | - 'priority' => '0.8', | ||
16 | - 'id' => 2, | ||
17 | - ], | ||
18 | - 3 => [ | ||
19 | - 'entity' => 'artbox\\core\\models\\Page', | ||
20 | - 'status' => '1', | ||
21 | - 'frequency' => 'weekly', | ||
22 | - 'priority' => '0.6', | ||
23 | - 'id' => 3, | ||
24 | - ], | ||
25 | -]; | ||
26 | \ No newline at end of file | 0 | \ No newline at end of file |
common/config/SitemapStatic.php deleted
1 | -<?php | ||
2 | - | ||
3 | -return [ | ||
4 | - 1 => [ | ||
5 | - 'url' => 'http://t13.artweb.com.ua/', | ||
6 | - 'frequency' => 'always', | ||
7 | - 'priority' => '1', | ||
8 | - 'id' => 1, | ||
9 | - ], | ||
10 | - 2 => [ | ||
11 | - 'url' => 'http://t13.artweb.com.ua/ru/site/legal', | ||
12 | - 'frequency' => 'daily', | ||
13 | - 'priority' => '0.9', | ||
14 | - 'id' => 2, | ||
15 | - ], | ||
16 | - 3 => [ | ||
17 | - 'url' => 'http://t13.artweb.com.ua/ru/site/individual', | ||
18 | - 'frequency' => 'daily', | ||
19 | - 'priority' => '0.9', | ||
20 | - 'id' => 3, | ||
21 | - ], | ||
22 | -]; | ||
23 | \ No newline at end of file | 0 | \ No newline at end of file |