On Tue, Jul 20, 2010 at 5:51 PM, Саша Стаменковић <[email protected]> > wrote: > > $this->_redirect('/new-url', array('code' => 301)); >
> On Wed, Jul 21, 2010 at 7:54 PM, Jean-Michel Philippon-Nadeau < > [email protected]> wrote: > I was hoping there were a config I could add to my routes.ini to catch > requests made with an old URL scheme and forward them to the new ones. > Or maybe a simple regex in my bootstrap would do the trick? > > Any ideas? > > You create a route that matches the old route and points to a redirect action that uses the Redirector helper to redirect to the new route http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.redirector
