蚂蚁分类信息5.9SE多城市版NGINX伪静态规则

蚂蚁分类信息5.9SE多城市版NGINX伪静态规则包含电脑端、手机端伪静态规则!


1、解决NGINX环境轻量级运营,提升打开速度

2、美化SEO链接,提升百度等搜索引擎收录概率

75256103.jpg

技术服务电话:18703995109    技术服务费用:300元起步


以下为“蚂蚁分类信息5.9SE多城市版NGINX伪静态规则”详细内容:

非VIP禁止阅读,内容仅供合作技术员使用!


[Pay]

PC伪静态:

rewrite ^/space/(.+)\/$ /space.php?user=$1    last;

if (!-d $request_filename) { rewrite ^/(.+)/$ /category.php?Catid=$1  last; }

rewrite ^/([^\/]+)/([0-9]+)\.html$ /information.php?id=$2  last;

rewrite ^/news\.html$ /news.php    last;

rewrite ^/news-id-([0-9]+)\.html$ /news.php?id=$1    last;

rewrite ^/news-catid-([0-9]+)\.html$ /news.php?catid=$1    last;

rewrite ^/news-catid-([0-9]+)-page-([0-9]+)\.html$ /news.php?catid=$1&page=$2    last;

rewrite ^/corporation\.html$ /corporation.php    last;

rewrite ^/corporation-([^\/]+)\.html$ /corporation.php?Catid=$1    last;

rewrite ^/goods\.html$ /goods.php    last;

rewrite ^/goods-id-([0-9]+)\.html$ /goods.php?id=$1    last;

rewrite ^/goods-([^\/]+)\.html$ /goods.php?Catid=$1    last;

rewrite ^/sitemap\.html$ /about.php?part=sitemap    last;

rewrite ^/aboutus\.html$ /about.php?part=aboutus    last;

rewrite ^/aboutus-id-([0-9]+)\.html$ /about.php?part=aboutus&id=$1    last;

rewrite ^/announce\.html$ /about.php?part=announce&id=$1    last;

rewrite ^/faq\.html$ /about.php?part=faq    last;

rewrite ^/faq-id-([0-9]+)\.html$ /about.php?part=faq&id=$1    last;

rewrite ^/friendlink\.html$ /about.php?part=friendlink    last;

rewrite ^/mayi-info\.xml$ /sitemap.php?part=info    last;

rewrite ^/mayi-category\.xml$ /sitemap.php?part=category    last;

rewrite ^/mayi-store\.xml$ /sitemap.php?part=store    last;

rewrite ^/mayi-news\.xml$ /sitemap.php?part=news    last;


WAP二级域名:

if (-d $request_filename) { rewrite ^/([a-z,A-Z]+)/$ /$1/index.php last;}

rewrite ^/([a-z,A-Z]+)/(.+)/$ /$1/index.php?mod=category&Catid=$2 last;

rewrite ^/([a-z,A-Z]+)/([a-z,A-Z,_]+)/([0-9]+)\.html$ /$1/index.php?mod=information&id=$3 last;

rewrite ^/([a-z,A-Z]+)/news.html$ /$1/index.php?mod=news last;

rewrite ^/([a-z,A-Z]+)/news-id-([0-9]+).html$ /$1/index.php?mod=news&id=$2 last;

rewrite ^/([a-z,A-Z]+)/news-catid-([0-9]+).html$ /$1/index.php?mod=news&catid=$2 last;

rewrite ^/([a-z,A-Z]+)/news-catid-([0-9]+)-page-([0-9]+).html$ /$1/index.php?mod=news&catid=$2&page=$3 last;

rewrite ^/([a-z,A-Z]+)/goods.html$ /$1/index.php?mod=goods last;

rewrite ^/([a-z,A-Z]+)/goods-id-([0-9]+).html$ /$1/index.php?mod=goods&id=$2 last;

rewrite ^/([a-z,A-Z]+)/goods-([^\/]+).html$ /$1/index.php?mod=goods&Catid=$2 last;

rewrite ^/([a-z,A-Z]+)/corporation.html$ /$1/index.php?mod=corp last;

rewrite ^/([a-z,A-Z]+)/corporation-([^\/]+)\.html$ /$1/index.php?mod=corp&Catid=$2 last;

rewrite ^/store-([0-9]+)/$ /index.php?mod=store&id=$1 last;

rewrite ^/store-([0-9]+)/([a-z]+).html$ /index.php?mod=store&id=$1&action=$2 last;

rewrite ^/store-([0-9]+)/document-id-([0-9]+).html$ /index.php?mod=store&id=$1&action=document&docuid=$2 last;

rewrite ^/(.+)/$ /index.php?mod=category&Catid=$1 last;

rewrite ^/news.html$ /index.php?mod=news last;

rewrite ^/news-id-([0-9]+).html$ /index.php?mod=news&id=$1 last;

rewrite ^/news-catid-([0-9]+).html$ /index.php?mod=news&catid=$1 last;

rewrite ^/news-catid-([0-9]+)-page-([0-9]+).html$ /index.php?mod=news&catid=$1&page=$2 last;

rewrite ^/goods.html$ /index.php?mod=goods last;

rewrite ^/goods-id-([0-9]+).html$ /index.php?mod=goods&id=$1 last;

rewrite ^/goods-([^\/]+).html$ /index.php?mod=goods&Catid=$1 last;

rewrite ^/corporation.html$ /index.php?mod=corp last;

rewrite ^/corporation-([^\/]+)\.html$ /index.php?mod=corp&Catid=$1 last;

rewrite ^/aboutus.html$ /index.php?mod=aboutus last;

rewrite ^/aboutus-id-([0-9]+).html$ /index.php?mod=aboutus&id=$1 last;

rewrite ^/announce.html$ /index.php?mod=announce&id=$1 last;



[/Pay]

本文由站长原创或收集,不代表本站立场,如若转载,请注明出处:https://www.liugui.cn/post/188.html

本文 暂无 评论

回复给

欢迎点评

联系我们

站长QQ:921853230

站长邮件:lg3230@qq.com

工作时间:周一至周五,9:30-18:30,节假日休息

QR code