我想为主页做一个路由,所以如果它是 / 或 /index 或 /index.php 发送到同一个控制器(到索引控制器)
所以我写了这个
homepage:
pattern: /
defaults: { _controller: DprocMainBundle:Index:index}
homepage_1:
pattern: /index
defaults: { _controller: DprocMainBundle:Index:index}
homepage_2:
pattern: /index.php
defaults: { _controller: DprocMainBundle:Index:index}
它可以工作,但它是重复的..我如何一次做多条路线?