Commit 056f2ad9ced0eb9d97dbf3e1fba618b807ed0da2

Authored by Timur Kastemirov
1 parent 151d8af0

sitemap

Showing 1 changed file with 11 additions and 2 deletions   Show diff stats
backend/config/main.php
... ... @@ -96,10 +96,19 @@
96 96 ],
97 97 'urlManagerFrontend' => [
98 98 'class' => SeoUrlManager::className(),
99   - 'baseUrl' => '/',
100 99 'enablePrettyUrl' => true,
101 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 113 'sitemap' => [
105 114 'class' => Sitemap::className(),
... ...