From 4d77d2021163e2bf1d177f3d489ed28bcf71ec4a Mon Sep 17 00:00:00 2001 From: dozer111 Date: Sat, 23 Jun 2018 15:05:23 +0300 Subject: [PATCH] немного подправил редирект --- frontend/config/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/config/main.php b/frontend/config/main.php index cdf6cdd..1b1b86f 100755 --- a/frontend/config/main.php +++ b/frontend/config/main.php @@ -22,7 +22,7 @@ use yii\helpers\Url; Yii::$app->response->redirect($url, 301); } # редирект с www.siteName.com//////////////////////// на www.siteName.com elseif (substr($pathInfo, 0, 1) == "/" && substr($pathInfo, 1, 1) == "/") { - Yii::$app->response->redirect('/site/index', 301); + Yii::$app->response->redirect('/', 301); } }, 'id' => 'app-frontend', -- libgit2 0.21.4