https://www.kancloud.cn/manual/thinkphp6_0/1037488
URL重写
可以通过URL重写隐藏应用的入口文件index.php
[ Nginx ]
在Nginx低版本中,是不支持PATHINFO的,但是可以通过在Nginx.conf
中配置转发规则实现:
标签:index,rewrite,url,thinkphp6,Nginx,php From: https://www.cnblogs.com/cute/p/16870358.html
location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } }
宝塔可以在nginx配置中直接选择thinkphp的模板