在Zend项目中修改.htaccess

I am creating a web project in Zend Framework

It contains only two controllers:

  1. IndexController
  2. AdminController

There isn't going be more than these 2 controllers. Here is the list of possible URLs and what I need them to transform in(or something similar to it):

  • Current --> new

  • BASE/index/action/parameter/value -> BASE/action/parameter/value

  • BASE/index/action -> BASE/action

  • BASE/admin/action AND BASE/admin/action/parameter/value :: URL

can stay like this,

It'd be easy with one controller, but I don't know where to start or how to figure it out with two. Somehow need to tell Zend which controller to use.

Current .htaccess is one generated by Zend:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

(BASE = example.com)

Thanks for your time in advance