kimcool 发表于 2011-6-24 12:47:50

stick 发表于 2011-6-24 13:41:35

:P 这么多应该加rmb

神马皆浮云 发表于 2011-6-24 14:02:47

不是有个在线转的么

qxwo 发表于 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-(.+)-(+).html$ /$1guide.php\?tag=$2&p=$3;
        rewrite ^/(.*)guide-(.+).html$ /$1guide.php\?tag=$2;
        rewrite ^/(.*)guideshow-(.+)-(+).html$ /$1guideshow.php\?tag=$2&id=$3;
        rewrite ^/(.*)bitem-(+).html$ /$1bitem.php\?id=$2;
        rewrite ^/(.*)item-(+).html$ /$1item.php\?id=$2;
        rewrite ^/(.*)blist-(+)-(+)-(+).html$ /$1blist.php\?c=$2&s=$3&p=$4;
        rewrite ^/(.*)blist-(+).html$ /$1blist.php\?c=$2;
        rewrite ^/(.*)list-(+).html$ /$1list.php\?c=$2;
        rewrite ^/(.*)list-(+)-(+)-(+)-(+).html$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5;
        rewrite ^/(.*)list-(+)-(+)-(+)-(+)-(+).html$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5&p=$6;
        rewrite ^/(.*)list-(.+)-(+).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-(.+)-(+)/$ /$1guide.php\?tag=$2&p=$3;
        rewrite ^/(.*)guide-(.+)-(+)$ /$1guide.php\?tag=$2&p=$3;
        rewrite ^/(.*)guide-(.+)/$ /$1guide.php\?tag=$2;
        rewrite ^/(.*)guide-(.+)$ /$1guide.php\?tag=$2;
        rewrite ^/(.*)guideshow-(.+)-(+)/$ /$1guideshow.php\?tag=$2&id=$3;
        rewrite ^/(.*)guideshow-(.+)-(+)$ /$1guideshow.php\?tag=$2&id=$3;
        rewrite ^/(.*)item-(+)/$ /$1item.php\?id=$2;
        rewrite ^/(.*)item-(+)$ /$1item.php\?id=$2;
        rewrite ^/(.*)blist-(+)-(+)-(+)/$ /$1blist.php\?c=$2&s=$3&p=$4;
        rewrite ^/(.*)blist-(+)-(+)-(+)$ /$1blist.php\?c=$2&s=$3&p=$4;
        rewrite ^/(.*)blist-(+)/$ /$1blist.php\?c=$2;
        rewrite ^/(.*)blist-(+)$ /$1blist.php\?c=$2;
        rewrite ^/(.*)list-(+)/$ /$1list.php\?c=$2;
        rewrite ^/(.*)list-(+)$ /$1list.php\?c=$2;
        rewrite ^/(.*)list-(+)-(+)-(+)-(+)/$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5;
        rewrite ^/(.*)list-(+)-(+)-(+)-(+)$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5;
        rewrite ^/(.*)list-(+)-(+)-(+)-(+)-(+)/$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5&p=$6;
        rewrite ^/(.*)list-(+)-(+)-(+)-(+)-(+)$ /$1list.php\?c=$2&sort=$3&s=$4&e=$5&p=$6;
        rewrite ^/(.*)list-(.+)-(+)/$ /$1list.php\?sq=$2&c=$3 last;
        rewrite ^/(.*)list-(.+)-(+)$ /$1list.php\?sq=$2&c=$3 last;

lemss 发表于 2011-6-24 20:26:39

好人啊
页: [1]
查看完整版本: 谁帮我把这个规则转成nginx的呀