首页 学习笔记正文

谁用的WDCP的Nginx蚂蚁分类5.8多城市的伪静态配置文件有没有?

zuozuo 学习笔记 2021-04-07 18:06:17 48 0

程序方 2017-09-29 17:01:42


谁用的WDCP的Nginx蚂蚁分类5.8多城市的伪静态配置文件有没有?

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

谁用的WDCP的Nginx蚂蚁分类5.8多城市的伪静态配置文件有没有?

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 ^/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 ^/corporation.html$ /corporation.php last;

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

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

rewrite ^/sitemap.html$ /about.php?part=sitemap 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 ^/space/(.+)/$ /space.php?user=$1 last;

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

rewrite ^/store-([0-9]+)/([^\/]+).html$ /store.php?uid=$1&Uid=$2 last;


if (!-e $request_filename) {

        return 404;

}

if ( $host ~* (\b(?!www\b)\w+)\.\w+\.\w+ ) { 

        set $domain $1;  

        rewrite ^(.*)/(.*).php(.*)$ /city/$domain/$2.php$3 last;  

}


上面是Nginx多城市二级域名使用的伪静态规则,如果是目录要相应的调整


版权声明

声明:本站所有主题/文章除标明原创外,均来自网络转载,版权归原作者所有,如果有侵犯到您的权益,请联系本站删除,谢谢合作!

发表评论

评论列表(0人评论 , 48人围观)
☹还没有评论,来说两句吧...

深圳seo优化|网站排名优化|网络推广霸屏服务-左左SEO笔记

http://www.hkseoer.com/

统计代码 | 京ICP备100000000

Powered By 左左seo笔记

使用手机软件扫描微信二维码

关注我们可获取更多热点资讯

Honor accompaniments. theme qk_teat