当我调用/api/v1/foo
Silex 时,搜索匹配的路由/api/v1/foo
而不是/foo
. 我该如何解决?
我的 HHVM 配置:
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
pattern = /api/v1/.?
to = api/v1/index.php
qsa = true
}
* {
pattern = .?
to = index.php
qsa = true
}
}
}
}