我遇到了全站404的问题
我按照官方手册设定url重定向没有解决问题qwq
这是我的伪静态设置
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /api {
try_files $uri $uri/ /api.php?$query_string;
}
#location /admin {
# try_files $uri $uri/ /admin.php?$query_string;
#}
location /flarum {
deny all;
return 404;
}
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
报错信息如下
GET http://meow.mthdm.cc/api/discussions?include=user%2ClastPostedUser%2CfirstPost%2Ctags&filter%5Bq%5D=%20tag%3Ageneral&
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
Sorry for the inconvenience.<br/>
Please report this message and include the following information to us.<br/>
Thank you very much!</p>
<table>
<tr>
<td>URL:</td>
<td>http://meow.mthdm.cc/api/discussions?include=user%2ClastPostedUser%2CfirstPost%2Ctags&filter%5Bq%5D=%20tag%3Ageneral&</td>
</tr>
<tr>
<td>Server:</td>
<td>saobilin</td>
</tr>
<tr>
<td>Date:</td>
<td>2020/03/08 09:02:33</td>
</tr>
</table>
<hr/>Powered by Tengine<hr><center>tengine</center>
</body>
</html>
环境php 7.4 nginx 宝塔面板