我的 Zend Framework PHP 应用程序的以下 routes.ini 配置文件有问题。我想只使用自己创建的静态网址。我不想使用某种 :language/ 路线!(搜索引擎优化要求)。我怎样才能做那种路由?
[routes]
;default
routes.businessregistration_fieldautovalidation.type = "Zend_Controller_Router_Route_Static"
routes.businessregistration_fieldautovalidation.route = "/business/registration/fieldautovalidation"
routes.businessregistration_fieldautovalidation.defaults.module = "businessregistration"
routes.businessregistration_fieldautovalidation.defaults.controller = "businessregistration"
routes.businessregistration_fieldautovalidation.defaults.action = "fieldautovalidation"
;de
routes.businessregistration_businessregistration_de.type = "Zend_Controller_Router_Route_Static"
routes.businessregistration_businessregistration_de.route = "/unternehmen/registrierung"
routes.businessregistration_businessregistration_de.defaults.module = "businessregistration"
routes.businessregistration_businessregistration_de.defaults.controller = "businessregistration"
routes.businessregistration_businessregistration_de.defaults.action = "index"
routes.businessregistration_businessregistration_en.defaults.locale = "de_DE"
;en
routes.businessregistration_businessregistration_en.type = "Zend_Controller_Router_Route_Static"
routes.businessregistration_businessregistration_en.route = "/business/registration"
routes.businessregistration_businessregistration_en.defaults.module = "businessregistration"
routes.businessregistration_businessregistration_en.defaults.controller = "businessregistration"
routes.businessregistration_businessregistration_en.defaults.action = "index"
routes.businessregistration_businessregistration_en.defaults.locale = "en_US"
问题是 zend 路由器引擎只初始化了第一条路由(“de”)。Zend Router 忽略以下英文路由。是否有任何限制,我只能将一条路线用于一个目的地?为什么?
非常感谢,
斯蒂芬