我想创建路由以获取链接,如:
我试图补充:
resources.router.routes.www.type = "Zend_Controller_Router_Route_Hostname" resources.router.routes.www.route = ":module.nameofmysite.com" resources.router.routes.www.defaults.module = "default" resources.router.routes.www.chains.index.type = "Zend_Controller_Router_Route" resources.router.routes.www.chains.index.route = ":controller/:action/*" resources.router.routes.www.chains.index.defaults.controller = "index" resources.router.routes.www.chains.index.defaults.action = "index"
我已经阅读了zend的文档,但是我仍然无法让它工作。
我在本地环境中使用通配符子域也遇到了类似的问题。我确定我的路由,但是主机文件不包含子域。这对我有效
127.0.0.1 mydomain.local 127.0.0.1 subdomain.mydomain.local