Hi,

I want a route like this:
$route = new Zend_Controller_Router_Route_Regex(
    '(\w+)',
    array(
        'controller' => 'search',
        'action'     => 'redirect-to-search',
    ),
    array(
        1 => 'query',
    ),
    '%s'
);
$router->addRoute('redirecttosearch', $route);

But its brake the default route, /index, /search, etc. no longer works.

How can I set to use this route only if default route doesn't match?

Reply via email to