nginx隐藏thinkphp中的index.php文件路径
/www/server/panel/vhost/rewrite/shop.sunluqi.xyz.conf中添加如下内容,
location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } |
/www/server/panel/vhost/rewrite/shop.sunluqi.xyz.conf中添加如下内容,
location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } |