1
lhbc 2016-09-25 15:01:00 +08:00 via iPhone 1
这是什么程序?
目测这代码有好多年了,估计搜一下就有。 |
2
sherlocktheplant 2016-09-25 15:02:57 +08:00 1
nginx 原生支持.htdoc
|
3
Kokororin 2016-09-25 15:11:53 +08:00 2
|
4
Dirlllee 2016-09-25 19:14:32 +08:00 via iPhone 1
首先百度
|
5
lslqtz 2016-09-26 18:06:21 +08:00 1
@Kokororin 来自他提供的链接的结果,似乎很 ok 。感谢+1
location /cp/ { if (!-e $request_filename){ rewrite ^/cp/([0-9a-zA-Z]+)$ /cp/index.php?type=$1 break; } rewrite ^/cp/([0-9a-zA-Z]+)/(\w+)$ /cp/index.php?type=$1&web=$2 break; rewrite ^/cp/([0-9a-zA-Z]+)/(\w+)/(\w+)$ /cp/index.php?type=$1&web=$2&page=$3 break; rewrite ^/cp/([0-9a-zA-Z]+)/(\w+)/(\w+)/(\w+)$ /cp/index.php?type=$1&web=$2&page=$3&pid=$4 break; } |