您的当前位置: 首页 > 技术知识 > 优化知识

江湖装修 nginx 伪静态规则

时间:2020-03-24 09:44:12

rewrite ^/admin\/(.*)$ /admin/$1 last;

rewrite ^/fenzhan\/(.*)$ /fenzhan/$1 last;

rewrite ^/attachs\/demo/(.*)$ http://www.ijh.cc/attachs/zxdemo/demo/$1 last;

rewrite ^/attachs\/(.*)$ /attachs/$1 last;

rewrite ^/themes\/.*\.(html|xml) /[F,L];

rewrite ^/themes\/(.*)$ /themes/$1 last;

rewrite ^/static\/(.*)$ /static/$1 last;

if (!-f $request_filename){

set $rule_7 1$rule_7;

}

if (!-d $request_filename){

set $rule_7 2$rule_7;

}

if ($rule_7 = "21"){

rewrite ^/(.*)$ /index.php?$1 last;

}


下载

客户案例
关于我们
技术知识
新闻动态
联系我们

电话:

Copyright © 2012-2020 wenyue. 吻月科技 版权所有备案号: