location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } }
用了一次这个 然后重载配置 重启PHP 更新浏览器1小时内的缓存,打开***/admin 登录后还是跳转到404,然后有用了下 宝塔里面 默认的 TP框架的伪静态规则 重载配置 重启PHP 更新浏览器1小时内的缓存 登录后还是跳转到404 求解
location / { if (-e $request_filename) { break; } if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } }
重装一次宝塔吧