1

我希望路由器匹配这个 URL

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 但它转到 index/profile 而不是 /help/hints

请指教

4

1 回答 1

1

您可以删除这些行:

subdomain.defaults.controller = "index"
subdomain.defaults.action = "profile"

如果您想路由个人资料页面,请执行与“提示”页面相同的想法并将其与“子域”路由链接。

于 2012-12-19T15:10:07.623 回答