Commit d2885c61c244d6db10a9b6027fbe7a8c9cc1f04f

Authored by Dima
1 parent 771c4ebc

redirect for category koshiki

Showing 1 changed file with 11 additions and 1 deletions   Show diff stats
www/index.php
... ... @@ -1800,7 +1800,17 @@ try
1800 1800 ['controller' => 'page'])->beforeMatch(function($matchedRoute, $routeObject){
1801 1801 return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c_20/koshiki_ovochevi_1c_21/ru", true, 301);
1802 1802 });
1803   -
  1803 + $router->add
  1804 + ('/koshiki_1c0',
  1805 + ['controller' => 'page']
  1806 + )->beforeMatch(function($matchedRoute, $routeObject) {
  1807 + return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c0/koshiki_ovochevi_1c1", true, 301);
  1808 + });
  1809 + $router->add
  1810 + ('/koshiki_1c_20{language:([/][a-z]{2})?}',
  1811 + ['controller' => 'page'])->beforeMatch(function($matchedRoute, $routeObject){
  1812 + return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c_20/koshiki_ovochevi_1c_21/ru", true, 301);
  1813 + });
1804 1814 $router->add
1805 1815 ('/koshiki_1c0/koshiki_ovochevi_1c1',
1806 1816 ['controller' => 'page',
... ...