51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

蚂蚁分类信息系统5.9,Nginx伪静态

最近帮朋友研究下分类信息网的搭建,百度了半天发现就这套系统比较合适,所以先找了网上的一个版本在本地研究。首先遇到的第一个问题就是伪静态,因为全网查出来的都是Apache的伪静态,甚至还有人说,这套系统不能用Nginx。说实话,这不是扯淡吗,哪有apache能用nginx不能用的。

mymps(蚂蚁分类信息/地方门户系统)是一款基于php mysql的建站系统。为在各种服务器上架设分类信息以及地方门户网站提供完美的解决方案。mymps,整站生成静态,拥有世界一流的用户体验,卓越的访问速度和负载能力。

上面是官网的介绍。

而本文,就是发布下,我整理好了的,全网唯一的蚂蚁分类信息系统5.9,Nginx伪静态。

rewrite ^/m/(?!store)(.+)/$ /m/index.php?mod=category&Catid=$1;
rewrite ^/m/([a-z,A-Z,_,-]+)/([0-9]+).html$ /m/index.php?mod=information&id=$2;
rewrite ^/m/news.html$ /m/index.php?mod=news;
rewrite ^/m/news-id-([0-9]+).html$ /m/index.php?mod=news&id=$1;
rewrite ^/m/news-catid-([0-9]+).html$ /m/index.php?mod=news&catid=$1;
rewrite ^/m/news-catid-([0-9]+)-page-([0-9]+).html$ /m/index.php?mod=news&catid=$1&page=$2;
rewrite ^/m/goods.html$ /m/index.php?mod=goods;
rewrite ^/m/goods-id-([0-9]+).html$ /m/index.php?mod=goods&id=$1;
rewrite ^/m/goods-([^\/]+).html$ /m/index.php?mod=goods&Catid=$1;
rewrite ^/m/corporation.html$ /m/index.php?mod=corp;
rewrite ^/m/corporation-([^\/]+)\.html$ /m/index.php?mod=corp&Catid=$1;

rewrite ^/m/store-([0-9]+)/$ /m/index.php?mod=store&id=$1; rewrite ^/m/store-([0-9]+)/([a-z]+).html$ /m/index.php?mod=store&id=$1&action=$2; rewrite ^/m/store-([0-9]+)/document-id-([0-9]+).html$ /m/index.php?mod=store&id=$1&action=document&docuid=$2; rewrite ^/m/aboutus.html$ /m/index.php?mod=aboutus; rewrite ^/m/aboutus-id-([0-9]+).html$ /m/index.php?mod=aboutus&id=$1; rewrite ^/m/announce.html$ /m/index.php?mod=announce&id=$1; rewrite ^/space/(.+)/$ /space.php?user=$1; rewrite ^/store-([0-9]+)/$ /store.php?uid=$1; rewrite ^/store-([0-9]+)/([^/]+).html$ /store.php?uid=$1&Uid=$2; rewrite ^/(?!store|space|m)(.+)/$ /category.php?Catid=$1; rewrite ^/([a-z,A-Z,_,-]+)/([0-9]+).html$ /information.php?id=$2; rewrite ^/news.html$ /news.php; rewrite ^/news-id-([0-9]+).html$ /news.php?id=$1; rewrite ^/news-catid-([0-9]+).html$ /news.php?catid=$1; rewrite ^/news-catid-([0-9]+)-page-([0-9]+).html$ /news.php?catid=$1&page=$2; rewrite ^/goods.html$ /goods.php; rewrite ^/goods-id-([0-9]+).html$ /goods.php?id=$1; rewrite ^/goods-([^/]+).html$ /goods.php?Catid=$1; rewrite ^/corporation.html$ /corporation.php; rewrite ^/corporation-([^/]+).html$ /corporation.php?Catid=$1; rewrite ^/category-catid-([0-9]+).html$ /category.php?catid=$1; rewrite ^/information-id-([0-9]+).html$ /information.php?id=$1; rewrite ^/category-catid-([0-9]+)-areaid-([0-9]+).html /category.php?catid=$1&areaid=$2; rewrite ^/aboutus.html$ /about.php?part=aboutus; rewrite ^/sitemap.html$ /about.php?part=sitemap; rewrite ^/aboutus-id-([0-9]+).html$ /about.php?part=aboutus&id=$1; rewrite ^/announce.html$ /about.php?part=announce&id=$1; rewrite ^/faq.html$ /about.php?part=faq; rewrite ^/faq-id-([0-9]+).html$ /about.php?part=faq&id=$1; rewrite ^/friendlink.html$ /about.php?part=friendlink; rewrite ^/mayi-info.xml$ /sitemap.php?part=info; rewrite ^/mayi-category.xml$ /sitemap.php?part=category; rewrite ^/mayi-store.xml$ /sitemap.php?part=store; rewrite ^/mayi-news.xml$ /sitemap.php?part=news;

下载.jpg
本文来自投稿,不代表本站立场,如若转载,请注明出处:https://www.ruletree.club/archives/3234/

赞(5)
未经允许不得转载:工具盒子 » 蚂蚁分类信息系统5.9,Nginx伪静态