找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 36|回复: 3

谁帮我把这个规则转成nginx的呀

[复制链接]

33

主题

216

回帖

563

积分

高级会员

积分
563
发表于 2011-6-24 12:47:50 | 显示全部楼层 |阅读模式

这么多应该加rmb
回复

使用道具 举报

67

主题

691

回帖

1623

积分

金牌会员

积分
1623
发表于 2011-6-24 13:41:35 | 显示全部楼层
不是有个在线转的么
回复

使用道具 举报

139

主题

3480

回帖

7427

积分

论坛元老

积分
7427
发表于 2011-6-24 14:02:47 | 显示全部楼层
rewrite ^/(.*)mall.html$ /$1mall.php last;
        rewrite ^/(.*)shop.html$ /$1shop.php last;
        rewrite ^/(.*)cat.html$ /$1cat.php last;
        rewrite ^/(.*)guide.html$ /$1guide.php;
        rewrite ^/(.*)guide-(.+)-([0-9]+).html$ /$1guide.php\?tag=$2&p=$3;
        rewrite ^/(.*)guide-(.+).html$ /$1guide.php\?tag=$2;
        rewrite ^/(.*)guideshow-(.+)-([0-9]+).html$ /$1guideshow.php\?tag=$2&id=$3;
        rewrite ^/(.*)bitem-([0-9]+).html$ /$1bitem.php\?id=$2;
        rewrite ^/(.*)item-([0-9]+).html$ /$1item.php\?id=$2;
        rewrite ^/(.*)blist-([0-9]+)-([0-9]+)-([0-9]+).html$ /$1blist.php\?c=$2&s=$3&p=$4;
        rewrite ^/(.*)blist-([0-9]+).html$ /$1blist.php\?c=$2;
        rewrite ^/(.*)list-([0-9]+).html$ /$1list.php\?c=$2;
        rewrite ^/(.*)list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5;
        rewrite ^/(.*)list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5&p=$6;
        rewrite ^/(.*)list-(.+)-([0-9]+).html$ /$1list.php\?sq=$2&c=$3 last;
        rewrite ^/(.*)mall/$ /$1mall.php last;
        rewrite ^/(.*)mall$ /$1mall.php last;
        rewrite ^/(.*)shop/$ /$1shop.php last;
        rewrite ^/(.*)shop$ /$1shop.php last;
        rewrite ^/(.*)cat/$ /$1cat.php last;
        rewrite ^/(.*)cat$ /$1cat.php last;
        rewrite ^/(.*)guide/$ /$1guide.php;
        rewrite ^/(.*)guide$ /$1guide.php;
        rewrite ^/(.*)guide-(.+)-([0-9]+)/$ /$1guide.php\?tag=$2&p=$3;
        rewrite ^/(.*)guide-(.+)-([0-9]+)$ /$1guide.php\?tag=$2&p=$3;
        rewrite ^/(.*)guide-(.+)/$ /$1guide.php\?tag=$2;
        rewrite ^/(.*)guide-(.+)$ /$1guide.php\?tag=$2;
        rewrite ^/(.*)guideshow-(.+)-([0-9]+)/$ /$1guideshow.php\?tag=$2&id=$3;
        rewrite ^/(.*)guideshow-(.+)-([0-9]+)$ /$1guideshow.php\?tag=$2&id=$3;
        rewrite ^/(.*)item-([0-9]+)/$ /$1item.php\?id=$2;
        rewrite ^/(.*)item-([0-9]+)$ /$1item.php\?id=$2;
        rewrite ^/(.*)blist-([0-9]+)-([0-9]+)-([0-9]+)/$ /$1blist.php\?c=$2&s=$3&p=$4;
        rewrite ^/(.*)blist-([0-9]+)-([0-9]+)-([0-9]+)$ /$1blist.php\?c=$2&s=$3&p=$4;
        rewrite ^/(.*)blist-([0-9]+)/$ /$1blist.php\?c=$2;
        rewrite ^/(.*)blist-([0-9]+)$ /$1blist.php\?c=$2;
        rewrite ^/(.*)list-([0-9]+)/$ /$1list.php\?c=$2;
        rewrite ^/(.*)list-([0-9]+)$ /$1list.php\?c=$2;
        rewrite ^/(.*)list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)/$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5;
        rewrite ^/(.*)list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5;
        rewrite ^/(.*)list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)/$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5&p=$6;
        rewrite ^/(.*)list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5&p=$6;
        rewrite ^/(.*)list-(.+)-([0-9]+)/$ /$1list.php\?sq=$2&c=$3 last;
        rewrite ^/(.*)list-(.+)-([0-9]+)$ /$1list.php\?sq=$2&c=$3 last;
回复

使用道具 举报

364

主题

1638

回帖

4422

积分

论坛元老

积分
4422
发表于 2011-6-24 14:05:04 | 显示全部楼层
好人啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-1-13 03:18 , Processed in 0.019443 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表