Am 28.08.2010 13:46, schrieb BB:
> 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?
Insert that route before the default route (current router is handling
routes LIFO).
--
Ben Scholzen 'DASPRiD'
Community Review Team Member | [email protected]
Zend Framework | http://www.dasprids.de
PGP key: http://stuff.dasprids.de/pgp/ben-scholzen-pgp-key.asc