记一次部署fastadmin时的报错
时间:2023年07月02日
/来源:网络
/编辑:佚名
fastadmin中lang 总是执行出错
Uncaught Error: Script error for "lang", needed by: fast
Failed to load resource: the server responded with a status of 404 (Not Found)


通过修改伪静态解决
ini复制代码if (!-e $request_filename) {
rewrite ^(.+?\.php)(/.+)$ /$1?s=$2 last;
rewrite ^(.*)$ /KveacRZAzp.php?s=$1 last;
break;
}
KveacRZAzp 是随机生成的入口名
Uncaught Error: Script error for "lang", needed by: fast
Failed to load resource: the server responded with a status of 404 (Not Found)


通过修改伪静态解决
ini复制代码if (!-e $request_filename) {
rewrite ^(.+?\.php)(/.+)$ /$1?s=$2 last;
rewrite ^(.*)$ /KveacRZAzp.php?s=$1 last;
break;
}
KveacRZAzp 是随机生成的入口名
新闻资讯 更多
- 【建站知识】查询nginx日志状态码大于400的请求并打印整行04-03
- 【建站知识】Python中的logger和handler到底是个什么?04-03
- 【建站知识】python3拉勾网爬虫之(您操作太频繁,请稍后访问)04-03
- 【建站知识】xpath 获取meta里的keywords及description的方法04-03
- 【建站知识】python向上取整以50为界04-03
- 【建站知识】scrapy xpath遇见乱码解决04-03
- 【建站知识】scrapy爬取后中文乱码,解决word转为html 时cp1252编码问题04-03
- 【建站知识】scrapy采集—爬取中文乱码,gb2312转为utf-804-03