Nginx环境配置伪静态规则


Nginx环境配置伪静态规则


if (-f $request_filename/index.html){rewrite (.) $1/index.html break;}
if (-f $request_filename/index.php){rewrite (.) $1/index.php;}
if (!-f $request_filename){rewrite (.) /index.php;}

相关推荐

发表评论

路人甲

网友评论(0)