友价商城Nginx伪静态,友价商城跟房产源码通用

rewrite vip(.*) /shop/view.php?str=$1 last;

rewrite ^/(.*)/search(.*).html /$1/index.php?str=$2 last;

rewrite ^/(.*)/view([0-9]*).html /$1/view.php?id=$2 last;

rewrite ^/(.*)/(.*)list(.*).html /$1/$2list.php?str=$3 last;

rewrite ^/(.*)/(.*)view(.*).html /$1/$2view.php?id=$3 last;



if ($host = 'yj99.cn' ) {

rewrite ^/(.*)$ http://www.yj99.cn/$1 permanent;

}

注:红色部分换成你自己的网址,这块是用于301跳转

附加内容:如果以上那段脚本处理代码无法生效,可以替换成以下的

rewrite ^(?i)/config/ueditor/php/upload/(.*).PHP /css/ last;

rewrite ^(?i)/config/ueditor/php/upload/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor/php/upload1/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor/php/upload1/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor/php/upload2/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor/php/upload2/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor/php/upload3/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor/php/upload3/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload1/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload1/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload2/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload2/(.*).asp /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload3/(.*).php /css/ last;

rewrite ^(?i)/config/ueditor_mini/php/upload3/(.*).asp /css/ last;

rewrite ^(?i)/ad/(.*).php /css/ last;

rewrite ^(?i)/ad/(.*).asp /css/ last;

rewrite ^(?i)/css/(.*).php /css/ last;

rewrite ^(?i)/css/(.*).asp /css/ last;

rewrite ^(?i)/js/(.*).php /css/ last;

rewrite ^(?i)/js/(.*).asp /css/ last;

rewrite ^(?i)/homeimg/(.*).php /css/ last;

rewrite ^(?i)/homeimg/(.*).asp /css/ last;

rewrite ^(?i)/gg/(.*).php /css/ last;

rewrite ^(?i)/gg/(.*).asp /css/ last;

rewrite ^(?i)/img/(.*).php /css/ last;

rewrite ^(?i)/img/(.*).asp /css/ last;

rewrite ^(?i)/upload/(.*).php /css/ last;

rewrite ^(?i)/upload/(.*).asp /css/ last;

rewrite ^(?i)/ckeditor/attached/(.*).php /css/ last;

rewrite ^(?i)/ckeditor/attached/(.*).asp /css/ last;

阿云资源网 » 友价商城Nginx伪静态,友价商城跟房产源码通用
本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除 ? 1995-2022 侵权投诉邮箱:778121741@qq.com
阿云资源站渝ICP备2021009414号-1/a>

网站首页 |投稿奖励 |友情链接 | 广告合作 | 网站地图 | 留言反馈 | 联系阿云

?版权所有,盗版必究-|阿云资源站