diff --git a/backend/config/main.php b/backend/config/main.php index e8451d7..93f81dc 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -96,10 +96,19 @@ ], 'urlManagerFrontend' => [ 'class' => SeoUrlManager::className(), - 'baseUrl' => '/', 'enablePrettyUrl' => true, 'showScriptName' => false, - 'rules' => [], + // 'dontShowDefaulPrefix' => true, + 'rules' => [ + '\/robots.txt' => 'site/robots', + ], + 'processRoutes' => [ + 'object/view', + 'blog/article', + 'blog/tag', + 'blog/category', + 'page/view', + ], ], 'sitemap' => [ 'class' => Sitemap::className(), -- libgit2 0.21.4