Commit 151d8af07d91aeda25021c9c1d8b143c1ca1205f
1 parent
e2dcc611
alias controller
Showing
1 changed file
with
3 additions
and
12 deletions
Show diff stats
backend/config/main.php
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | 'profile' => 'artbox\core\controllers\ProfileController', | 22 | 'profile' => 'artbox\core\controllers\ProfileController', |
23 | 'page' => 'artbox\core\controllers\PageController', | 23 | 'page' => 'artbox\core\controllers\PageController', |
24 | 'page-category' => 'artbox\core\controllers\PageCategoryController', | 24 | 'page-category' => 'artbox\core\controllers\PageCategoryController', |
25 | - 'alias' => 'artbox\core\controllers\AliasController', | 25 | + 'alias' => 'artbox\core\seo\controllers\AliasController', |
26 | 'seo' => 'artbox\core\controllers\SeoController', | 26 | 'seo' => 'artbox\core\controllers\SeoController', |
27 | 'feedback' => 'artbox\core\controllers\FeedbackController', | 27 | 'feedback' => 'artbox\core\controllers\FeedbackController', |
28 | 'blog' => 'artbox\weblog\controllers\ArticleController', | 28 | 'blog' => 'artbox\weblog\controllers\ArticleController', |
@@ -96,19 +96,10 @@ | @@ -96,19 +96,10 @@ | ||
96 | ], | 96 | ], |
97 | 'urlManagerFrontend' => [ | 97 | 'urlManagerFrontend' => [ |
98 | 'class' => SeoUrlManager::className(), | 98 | 'class' => SeoUrlManager::className(), |
99 | + 'baseUrl' => '/', | ||
99 | 'enablePrettyUrl' => true, | 100 | 'enablePrettyUrl' => true, |
100 | 'showScriptName' => false, | 101 | 'showScriptName' => false, |
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 | - ], | 102 | + 'rules' => [], |
112 | ], | 103 | ], |
113 | 'sitemap' => [ | 104 | 'sitemap' => [ |
114 | 'class' => Sitemap::className(), | 105 | 'class' => Sitemap::className(), |