Open Burial0268 opened 2 years ago
重写伪静态规则为 location / { try_files $uri $uri/ =404; rewrite (\d+|\w+)$ /index.php?id=$1;
location ^~ /asset/ {
root /var/www/crz.im;
}
location ^~ /api/ {
root /var/www/crz.im;
}
location ^~ /inc/ {
return 403;
}
} 即可
如题,在生成了短链接后,有部分概率会导致访问404
配置:伪静态确认无误,nginx/tengine,php74
尝试解决:改目录权限,重新部署(均没用)