全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1468|回复: 4

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

[复制链接]
发表于 2011-6-24 12:47:50 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2011-6-24 13:41:35 | 显示全部楼层
这么多应该加rmb
发表于 2011-6-24 14:02:47 | 显示全部楼层
不是有个在线转的么
发表于 2011-6-24 14:05:04 | 显示全部楼层
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;
发表于 2011-6-24 20:26:39 | 显示全部楼层
好人啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-1-20 17:02 , Processed in 0.066587 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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