配置伪静态,解决nginx刷新404
location / {
index index.php index.html index.htm default.php default.htm default.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.html?s=$1 last;
break;
}
}
- THE END -
最后修改:2024年8月2日
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.95app.top/nginx%e5%88%b7%e6%96%b0404/