我希望路由器匹配此网址
http://hawthornfc.localsupportus.com.au/hints
在我的routes.ini文件中
subdomain.type = "Zend_Controller_Router_Route_Hostname"
subdomain.route = ":clubalias.localsupportus.com.au"
subdomain.reqs.clubalias = "\w+"
subdomain.default.clubalias = "geelongscouts"
subdomain.defaults.controller = "index"
subdomain.defaults.action = "profile"
hints.type = Zend_Controller_Router_Route_Static
hints.route = "hints"
hints.default.controller = "help"
hints.default.action = "hints"
subdomain_hints.type = Zend_Controller_Router_Route_Chain
subdomain_hints.chain = "subdomain, hints"
我的路线完美匹配即。 subdomain_hints但它转到索引/配置文件而不是/ help / hints
请咨询
答案 0 :(得分:1)
您可以删除这些行:
subdomain.defaults.controller = "index"
subdomain.defaults.action = "profile"
如果您想要路由个人资料页面,请执行与“提示”页面相同的操作,并将其与“子域”路径链接。