thinkphp框架nginx配置
–>
在nginx对应项目的配置文件中修改
location / { index index.php index.html error/index.html; # !!!url重写!!! if (!-e $request_filename) { # 注意 if 后面有空格 rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break; } }
原文链接:https://www.cnblogs.com/donlyn/p/14236023.html
本文来源 互联网收集,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源,如您发现有涉嫌抄袭侵权的内容,请联系本站核实处理。
© 版权声明
文章版权归作者所有,未经允许请勿转载。