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;
}
}然后保存,重新加载就可以了。
经过试验 http://doc.thinkphp.cn/manual/hidden_index.html 写的无效!!!
版权声明:本文为博主原创文章,未经博主允许不得转载。
以上就介绍了Thinkphp 32 Nginx 伪静态写法15年7月最新有效,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号