Commit 3c290d0bb5273b7b06d7a56789e1b1fc9fd262c2
1 parent
2a75947f
fix redirect
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
www/index.php
... | ... | @@ -1816,16 +1816,15 @@ try |
1816 | 1816 | |
1817 | 1817 | $router->add |
1818 | 1818 | ('/koshiki_1c0/koshiki_ovochevi_1c1/kvitkoviy_koshik_1c-4306', |
1819 | - ['controller' => 'page', | |
1820 | - 'action' => 'basket_ua',] | |
1821 | - ); | |
1822 | - | |
1819 | + ['controller' => 'page'] | |
1820 | + )->beforeMatch(function($matchedRoute, $routeObject) { | |
1821 | + return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c0/koshiki_ovochevi_1c1", true, 301); | |
1822 | + }); | |
1823 | 1823 | $router->add |
1824 | 1824 | ('/koshiki_1c_20/koshiki_ovochevi_1c_21/tsvetochnaja_korzinka_1c2-4306{language:([/][a-z]{2})?}', |
1825 | - ['controller' => 'page', | |
1826 | - 'action' => 'basket_ru',] | |
1827 | - ) | |
1828 | - ->setName( 'basket_ru' ); | |
1825 | + ['controller' => 'page'])->beforeMatch(function($matchedRoute, $routeObject){ | |
1826 | + return \Phalcon\DI::getDefault()->getResponse()->redirect("/koshiki_1c_20/koshiki_ovochevi_1c_21/ru", true, 301); | |
1827 | + }); | |
1829 | 1828 | |
1830 | 1829 | |
1831 | 1830 | ... | ... |