nginx刷新404

helei 2024-8-2 469 8/2

配置伪静态,解决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 -

helei

8月02日09:32

最后修改:2024年8月2日
0

非特殊说明,本博所有文章均为博主原创。