技术笔记
一名已转行的程序员Nginx下thinkphp的Rewrite伪静态规则
2018-06-28 / 代码笔记 / 1161 次围观 / 0 次吐槽在百度上搜了多个方法,最终使用一下规则是正确成功可以访问的。
location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; break; } }
推荐您阅读更多有关于“”的文章
Powered By Z-BlogPHP
Copyright 技术笔记 Rights Reserved.
额 本文暂时没人评论 来添加一个吧
发表评论