当前位置:Gxlcms > PHP教程 > Thinkphp32Nginx伪静态写法15年7月最新有效

Thinkphp32Nginx伪静态写法15年7月最新有效

时间:2021-07-01 10:21:17 帮助过:10人阅读

  1. location / {
  2. if (!-e $request_filename) {
  3. rewrite ^/index.php(.*)$ /index.php?s=$1 last;
  4. rewrite ^(.*)$ /index.php?s=$1 last;
  5. #rewrite ^(.*)$ /index.php$1 break;
  6. break;
  7. }
  8. }

在server 中创建如上内容。

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

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

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

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

人气教程排行