Home >Backend Development >PHP Tutorial >Thinkphp 32 Nginx pseudo-static writing method, the latest effective in July 2015

Thinkphp 32 Nginx pseudo-static writing method, the latest effective in July 2015

WBOY
WBOYOriginal
2016-08-08 09:19:471165browse

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 写的无效!!!

版权声明:本文为博主原创文章,未经博主允许不得转载。

以上就介绍了Thinkphp 32 Nginx 伪静态写法15年7月最新有效,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn