Thinkphp 3.2 Nginx 伪静态写法15年7月最新有效

来源:互联网 发布:淘宝客户关系维护流程 编辑:程序博客网 时间:2024/06/06 03:10

location / {        if (!-e $request_filename) {            rewrite ^/index.php(.*)$ /index.php?s=$1 last;            rewrite  ^(.*)$  /index.php?s=$1  last;            #rewrite  ^(.*)$  /index.php$1 break;            break;    } }

在server 中创建如上内容。

然后保存,重新加载就可以了。


经过试验 http://doc.thinkphp.cn/manual/hidden_index.html 写的无效!!!



0 0
原创粉丝点击