Т.к. остальное там не существенно:
Код: Выделить всё
'urlManager' => [
'class' => 'frontend\urls\LangUrlManager',
// 'class' => 'yii\web\UrlManager',
'hostInfo' => $params['frontendHostInfo'],
'enablePrettyUrl' => true,
'showScriptName' => false,
'cache' => false,
'rules' => [
'' => 'site/index',
'signup' => 'auth/signup/index',
'reset/<_a:[\w-]+>' => 'auth/reset/<_a>',
'<_a:login|logout>' => 'auth/auth/<_a>',
'auth/network/auth' => 'auth/network/auth',
'fast/sign-up' => 'auth/fast/sign-up',
'site/login' => 'auth/auth/login',
'site/captcha' => 'site/captcha',
'avia' => 'site/avia',
['pattern' => 'turbo', 'route' => 'market/turbo', 'suffix' => '.xml'],
['pattern' => 'rss', 'route' => 'market/rss', 'suffix' => '.xml'],
['pattern' => 'sitemap', 'route' => 'sitemap/index', 'suffix' => '.xml'],
['pattern' => 'sitemap-<target:[a-z-]+>', 'route' => 'sitemap/<target>', 'suffix' => '.xml'],
'apple-touch-icon.png' => 'apple-touch-icon.png',
'humans.txt' => 'humans.txt',
'test' => 'test/index',
'cars' => 'cars/cars/index',
'car/<id:\d+>' => 'cars/cars/car',
'cars/cars/get-search' => 'cars/cars/get-search',
'cars/booking/get-calendar' => 'cars/booking/get-calendar',
'cars/booking/get-rent-car' => 'cars/booking/get-rent-car',
'cars/booking/get-amount' => 'cars/booking/get-amount',
'cars/checkout/booking' => 'cars/checkout/booking',
'cars/<slug:[\w\-]+>' => 'cars/cars/category',
'funs' => 'funs/funs/index',
'fun/<id:\d+>' => 'funs/funs/fun',
'funs/funs/get-search' => 'funs/funs/get-search',
'funs/booking/get-calendar' => 'funs/booking/get-calendar',
'funs/booking/get-tickets' => 'funs/booking/get-tickets',
'funs/booking/get-times' => 'funs/booking/get-times',
'funs/booking/get-amount' => 'funs/booking/get-amount',
'funs/checkout/booking' => 'funs/checkout/booking',
'funs/<slug:[\w\-]+>' => 'funs/funs/category',
'tours' => 'tours/tours/index',
'tours/booking/getcalendar' => 'tours/booking/getcalendar',
'tours/booking/gettickets' => 'tours/booking/gettickets',
'tours/booking/getlisttours' => 'tours/booking/getlisttours',
'tours/booking/getday' => 'tours/booking/getday',
'tours/booking/get-amount' => 'tours/booking/get-amount',
'tours/checkout/booking' => 'tours/checkout/booking',
'tour/<slug:[\w\-]+>' => 'tours/tours/tour',
'tours/<slug:[\w\-]+>' => 'tours/tours/category',
'stays' => 'stays/stays/index',
'stays/stays/get-booking' => 'stays/stays/get-booking',
'stays/stays/get-error' => 'stays/stays/get-error',
'stays/stays/map' => 'stays/stays/map',
'stays/stays/get-maps' => 'stays/stays/get-maps',
'stays/checkout/booking' => 'stays/checkout/booking',
'stay/<id:\d+>' => 'stays/stays/stay',
'foods' => 'food/index',
'food/map-foods' => 'food/map-foods',
'food/<id:\d+>' => 'food/view',
'shops' => 'shop/catalog/index',
'shop/catalog/<id:\d+>' => 'shop/catalog/category',
'shop/product/<id:\d+>' => 'shop/catalog/product',
'shop/<id:\d+>' => 'shop/catalog/shop',
'shop/cart/add' => 'shop/cart/add',
'shop/cart/sub' => 'shop/cart/sub',
'shop/cart/remove' => 'shop/cart/remove',
'shop/cart/quantity' => 'shop/cart/quantity',
'shop/cart' => 'shop/cart/index',
'survey/<id:\d+>' => 'survey/view',
'moving' => 'moving/moving/index',
'moving/faq' => 'moving/faq/index',
'moving/docs' => 'moving/docs/index',
'moving/realty' => 'moving/realty/index',
'moving/land' => 'moving/land/index',
'land/map/get-lands' => 'land/map/get-lands',
'moving/region' => 'moving/region/index',
'moving/bussines' => 'moving/bussines/index',
'moving/faq/category/<id:\d+>' => 'moving/faq/category',
'moving/faq/answer/<id:\d+>' => 'moving/faq/answer',
'moving/close/get-link' => 'moving/close/get-link',
'moving/<slug:[\w\-]+>' => 'moving/moving/view',
'lands' => 'land/land/index',
'land/investment' => 'land/investment/index',
'land/map' => 'land/map/index',
'land/add' => 'land/add/index',
'forum' => 'forum/index',
'forum/category' => 'forum/category',
'forum/post/<id:\d+>' => 'forum/post',
'forum/create-post' => 'forum/create-post',
'forum/remove-post' => 'forum/remove-post',
'forum/fix-post' => 'forum/fix-post',
'forum/unfix-post' => 'forum/unfix-post',
'forum/lock-post' => 'forum/lock-post',
'forum/unlock-post' => 'forum/unlock-post',
'forum/update-message' => 'forum/update-message',
'forum/remove-message' => 'forum/remove-message',
'tickets' => 'tickets/tickets/index',
'legals/view' => 'legals/view',
'cabinet/dialogs' => 'cabinet/dialog/index',
'cabinet/orders' => 'cabinet/order/index',
'cabinet/order' => 'cabinet/order/view',
'cabinet/dialog' => 'cabinet/dialog/dialog',
'cabinet/petition' => 'cabinet/dialog/petition',
'conversation' => 'cabinet/dialog/conversation',
'support' => 'cabinet/dialog/support',
'post' => 'post/index',
'post/comment' => 'post/comment',
'post/widget-map' => 'post/widget-map',
'post/tag/<slug:[\w\-]+>' => 'post/tag',
'post/<id:\d+>' => 'post/post',
'post/<slug:[\w\-]+>' => 'post/category',
'cabinet' => 'cabinet/default/index',
'cabinet/<_c:[\w\-]+>' => 'cabinet/<_c>/index',
'cabinet/<_c:[\w\-]+>/<id:\d+>' => 'cabinet/<_c>/view',
'cabinet/<_c:[\w\-]+>/<_a:[\w-]+>' => 'cabinet/<_c>/<_a>',
'cabinet/<_c:[\w\-]+>/<id:\d+>/<_a:[\w\-]+>' => 'cabinet/<_c>/<_a>',
'/<slug:[\w\-]+>' => 'page/view',
['class' => 'frontend\urls\PageUrlRule'],
['class' => 'frontend\urls\MovingPageUrlRule'],
['class' => 'frontend\urls\TourUrlRule'],
['class' => 'frontend\urls\TourTypeUrlRule'],
['class' => 'frontend\urls\CarTypeUrlRule'],
['class' => 'frontend\urls\FunTypeUrlRule'],
'<_c:[\w\-]+>' => '<_c>/index',
'<_c:[\w\-]+>/<id:\d+>' => '<_c>/view',
'<_c:[\w\-]+>/<_a:[\w\-]+' => '<_c>/<_a>',
'<_c:[\w\-]+>/<id:\d+>/<_a:[\w\-]+' => '<_c>/<_a>',
],
],
],