当我致电/api/v1/foo
时,Silex会搜索与/api/v1/foo
而非/foo
匹配的路线。我该如何解决这个问题?
我的HHVM-Config:
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
pattern = /api/v1/.?
to = api/v1/index.php
qsa = true
}
* {
pattern = .?
to = index.php
qsa = true
}
}
}
}