one: URL rewrite ecshop case
Rewrite syntax rewrite the position pattern after the regular expression is directed goods-3.html---->goods.php?goods_id=3Goods-([\d]+) \.html---> goods.php?goods_id =$1 Location/Ecshop {Index index.Php;rewrite Goods-([\d]+) \.html$/ecshop/goods.php?id=$1; rewrite article-([\d]+) \.html$/ecshop/article.php?id=$1; rewrite category-(\d+)-B (\d+) \.html/ecshop/category.php?id=$1&brand=$2; rewrite category-(\d+)-B (\d+)-min(\d+)-Max(\d+)-attr ([\d\.] +) \.html/ecshop/category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5; rewrite category-(\d+)-B (\d+)-min(\d+)-Max(\d+)-attr ([\d+\.]) -(\d+)-([^-]+)-([^-]+) \.html/ecshop/category.php?id=$1&brand=$2&price_min=$3&price_max=$4& filter_attr=$5&page=$6&Sort=$7&order=$8;} Note: In the case of a URL rewrite, if there is "{}" in the regular, it is wrapped in double quotation marks.
Nginx URL rewrite Ecshop case