Nov
25
2012
ecshop用于nginx下的伪静态规则
location ~* ^.+\.(bak|inc|lib|sh|tpl|lbi|dwt)$ { deny all; } location / { rewrite "^(.*)/index.html$" $1/index.php last; rewrite "^(.*)/category$" $1/index.php last; # access any object by its numeric identifier rewrite "^(.*)/feed-c([0-9]+).xml$" $1/feed.php?cat=$2 last; rewrite "^(.*)/feed-b([0-9]+).xml$" $1/feed.php?brand=$2 last; rewrite "^(.*)/feed.xml$" $1/feed.php last; rewrite "^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^(.*)/-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" $1/category.php?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 last; rewrite "^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^(.*)/-]*)(.*).html$" $1/category.php?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 last; rewrite "^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" $1/category.php?id=$2&brand=$3&page=$4&sort=$5&order=$6 last; rewrite "^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$" $1/category.php?id=$2&brand=$3&page=$4 last; rewrite "^(.*)/category-([0-9]+)-b([0-9]+)(.*).html$" $1/category.php?id=$2&brand=$3 last; rewrite "^(.*)/category-([0-9]+)(.*).html$" $1/category.php?id=$2 last; rewrite "^(.*)/goods-([0-9]+)(.*).html$" $1/goods.php?id=$2 last; rewrite "^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" $1/article_cat.php?id=$2&page=$3&sort=$4&order=$5 last; rewrite "^(.*)/article_cat-([0-9]+)-([0-9]+)(.*).html$" $1/article_cat.php?id=$2&page=$3 last; rewrite "^(.*)/article_cat-([0-9]+)(.*).html$" $1/article_cat.php?id=$2 last; rewrite "^(.*)/article-([0-9]+)(.*).html$" $1/article.php?id=$2 last; rewrite "^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html$" $1/brand.php?id=$2&cat=$2&page=$4&sort=$5&order=$6 last; rewrite "^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html$" $1/brand.php?id=$2&cat=$3&page=$4 last; rewrite "^(.*)/brand-([0-9]+)-c([0-9]+)(.*).html$" $1/brand.php?id=$2&cat=$3 last; rewrite "^(.*)/brand-([0-9]+)(.*).html$" $1/brand.php?id=$2 last; rewrite "^(.*)/tag-(.*).html$" $1/search.php?keywords=$2 last; rewrite "^(.*)/snatch-([0-9]+).html$" $1/snatch.php?id=$2 last; rewrite "^(.*)/group_buy-([0-9]+).html$" $1/group_buy.php?act=view&id=$2 last; rewrite "^(.*)/auction-([0-9]+).html$" $1/auction.php?act=view&id=$2 last; }
最活跃的读者