部署fastadmin程序的时候后台登录界面404,前台正确
部署fastadmin程序的时候后台登录界面404,前台正确http://127.0.0.1/hCLOyNErFa.php
自动跳转到http://127.0.0.1/hCLOyNErFa.php/index/login原因:伪静态的问题fastadmin默认部署推荐的是thinkphp伪静态
location ~* (runtime|application)/{
return 403;
}
location / {
if (!-e $request_filename){
rewrite^(.*)[ DISCUZ_CODE_2 ]nbsp; /index.php?s=$1last; break;
}
}改为:location ~* (runtime|application)/{
return 403;
}
location ^~ /hCLOyNErFa.php/ {
if (!-e $request_filename){
rewrite^\/hCLOyNErFa\.php(.*)[ DISCUZ_CODE_3 ]nbsp; /hCLOyNErFa.php?s=$1 last; break;
}
}
location / {
if (!-e $request_filename){
rewrite^(.*)[ DISCUZ_CODE_3 ]nbsp; /index.php?s=$1last; break;
}
}
其中“hCLOyNErFa”对应的生成的后台网址名称
页:
[1]