I use Zend Framework in my web application. I have the next URL: domain/user/user/username. Where first user is a controller in the default module. Second user is a GET variable. username is a value of this variable. All good. But for the good usability I want to have the next URL: domain/user/username. I know that by Zend GET rules it should be as my first variant. But maybe I can do this with mod rewriting or Zend_Route? Help me, please.
Thank you in advance.
Create
/application/configs/routes.xml:Then in
Bootstrap.php:You may also do the same in a lot of other ways, e.g. in
application.ini.