0
什么我得到的是:nginx的路径改写
/index.php/rest/item/1
然而,应该去:
/rest/item/1
我怎么可以重写每一个请求从/index.php/rest/到/休息/?
谢谢!
编辑: 看来,如果我让一个重定向到只工作:
rewrite ^/index.php/rest/(.*)$ /rest/$1 permanent;
如果我使用“破发”或“最后”这404对我来说,任何想法?我使用Gallery3,它是用php的Konoha框架编写的。
然后,您应该将此标记为接受的答案。 – asymmetric