BeDesk Nginx静态化規則

 location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

或者

if (!-d $request_filename){
 set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/(.*)/$ /$1 permanent;
}
if (!-d $request_filename){
 set $rule_1 1$rule_1;
}
if (!-f $request_filename){
 set $rule_1 2$rule_1;
}
if ($rule_1 = "21"){
rewrite ^/ /index.php last;
}
© 版权声明
THE END
請多多支持
点赞0
评论 抢沙发

    暂无评论内容