不懂先生

Nginx伪静态(隐藏index.php)
作用将url中的index.php可以省略不写代码if ( !-e $request_filename) { ...
扫描右侧二维码阅读全文
08
2022/04

Nginx伪静态(隐藏index.php)

作用

将url中的index.php可以省略不写

代码

if ( !-e $request_filename) {
    rewrite ^/(.*)$ /index.php/$1 last;
    break;
}
Last modification:April 8th, 2022 at 02:50 am

Leave a Comment