The probably cleanest way would be to do the redirect via mod_rewrite (or equivalent in other web servers).

On 03.07.2014 14:05, Juan Pedro Gonzalez wrote:
Is it possible to redirect from within a custom route?
I've created an specific route for locale detection. This works fine for paths 
such as:
/en//es//fr/...
However, if the path is missing the trailing slash I wish to create a redirect 
to the path with the trailing slash. I know I could do something like creating 
a new onRoute event, but it would be nicer (and less code) if the redirect 
could be made from the route itself. Any way to accomplish this?
Thanks in advance                                       



--
Ben Scholzen 'DASPRiD'
Community Review Team Member | [email protected]
Zend Framework               | http://www.dasprids.de

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to