From d2885c61c244d6db10a9b6027fbe7a8c9cc1f04f Mon Sep 17 00:00:00 2001 From: Meteo Date: Wed, 1 Feb 2017 15:12:11 +0200 Subject: [PATCH] redirect for category koshiki --- www/index.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/www/index.php b/www/index.php index ce78373..1c072ef 100644 --- a/www/index.php +++ b/www/index.php @@ -1800,7 +1800,17 @@ try ['controller' => 'page'])->beforeMatch(function($matchedRoute, $routeObject){ return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c_20/koshiki_ovochevi_1c_21/ru", true, 301); }); - + $router->add + ('/koshiki_1c0', + ['controller' => 'page'] + )->beforeMatch(function($matchedRoute, $routeObject) { + return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c0/koshiki_ovochevi_1c1", true, 301); + }); + $router->add + ('/koshiki_1c_20{language:([/][a-z]{2})?}', + ['controller' => 'page'])->beforeMatch(function($matchedRoute, $routeObject){ + return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c_20/koshiki_ovochevi_1c_21/ru", true, 301); + }); $router->add ('/koshiki_1c0/koshiki_ovochevi_1c1', ['controller' => 'page', -- libgit2 0.21.4