立即注册  找回密码
 立即注册
CeraNetworksBGVM服务器主机交流会员请立即修改密码Sharktech防护
查看: 82|回复: 3

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

[复制链接]

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

[复制链接]

18

主题

70

回帖

230

积分

中级会员

积分
230
kimcool

18

主题

70

回帖

230

积分

中级会员

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

这么多应该加rmb
回复

使用道具 举报

18

主题

136

回帖

460

积分

中级会员

积分
460
stick

18

主题

136

回帖

460

积分

中级会员

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

使用道具 举报

11

主题

420

回帖

1461

积分

金牌会员

积分
1461
神马皆浮云

11

主题

420

回帖

1461

积分

金牌会员

积分
1461
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;
回复

使用道具 举报

275

主题

687

回帖

3959

积分

论坛元老

积分
3959
qxwo

275

主题

687

回帖

3959

积分

论坛元老

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

使用道具 举报

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

本版积分规则

Archiver|小黑屋|HS2V主机综合交流论坛

GMT+8, 2025-3-14 18:35 , Processed in 0.019024 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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