【发布时间】:2012-05-21 21:16:49
【问题描述】:
我得到的是:
/index.php/rest/item/1
但是,它应该是:
/rest/item/1
如何将每个请求从 /index.php/rest/ 重写为 /rest/ ?
谢谢!
编辑: 它似乎只有在我将其设为重定向时才有效:
rewrite ^/index.php/rest/(.*)$ /rest/$1 permanent;
如果我使用“break”或“last”,它会在我身上出现 404,知道吗?我正在使用 Gallery3,它是在 php 的 Konoha 框架上编写的。
【问题讨论】:
标签: url-rewriting nginx rewrite