【发布时间】:2016-04-26 16:18:11
【问题描述】:
我会尽量简短。我有以下 nginx 重写 url:
rewrite ^/(.*)?$ /index.php?completeURL=$1 last;
我想要一个类似的网址:
http://mywebsite.com/http://www.otherwebsite.com/dir1/dirx/article.php&id=2&category=1
请求:
http://mywebsite.com/index.php?completeURL=http://www.otherwebsite.com/dir1/dirx/article.php&id=2&category=1
目前nginx规则有问题。 示例:如果参数包含 .php 扩展名,他会在我的服务器上查找该文件。
示例:http://mywebsite.com/dir1/dirx/article.php
您认为我该如何解决这个问题?
更新: 这里是 nginx 配置(和重写)文件:
【问题讨论】:
标签: nginx