There are questions remain, We'll search for the answers together. But one thing we known for sure,the future is not set!

【原创文章】大商创dscmall 2.0伪静态规则从Apache转nginx的方法

大商创多用户系统dscmall 2.0的Apache转nginx伪静态规则

如果环境从Apache转到nginx,那么伪静态需要随同转换。

以index.html为例

Apache规则

RewriteRule ^index\.htm$ index\.php [L]

Nginx规则

rewrite "^/index\.htm$" /index.php last;

总结起来主要有6点不同:

1.RewriteRule变为rewrite
2,前地址最好加双引号""
3,后地址中的“.”不需要转义,去掉反斜杠“\”
4,后地址第一位需要加“/”
5,[L]变为last
6,每一句规则最后加分号“;”

 

分享大商创多用户系统dscmall 2.0的Apache伪静态规则,网站根目录放置文件.htaccess

内容为:

RewriteEngine On
# direct one-word access
RewriteRule ^index\.html$ index\.php [L]
RewriteRule ^index\.htm$ index\.php [L]
RewriteRule ^category$ index\.php [L]
# single page
RewriteRule ^brand\.html$ brand\.php [L]
RewriteRule ^brandn\.html$ brandn\.php [L]
RewriteRule ^group_buy\.html$ group_buy\.php [L]
RewriteRule ^seckill\.html$ seckill\.php [L]
RewriteRule ^auction\.html$ auction\.php [L]
RewriteRule ^package\.html$ package\.php [L]
RewriteRule ^activity\.html$ activity\.php [L]
RewriteRule ^snatch\.html$ snatch\.php [L]
RewriteRule ^exchange\.html$ exchange\.php [L]
RewriteRule ^store_street\.html$ store_street\.php [L]
RewriteRule ^presale\.html$ presale\.php [L]
RewriteRule ^categoryall\.html$ categoryall\.php [L]
RewriteRule ^merchants\.html$ merchants\.php [L]
RewriteRule ^merchants_index\.html$ merchants_index\.php [L]
RewriteRule ^message\.html$ message\.php [L]
RewriteRule ^wholesale\.html$ wholesale\.php [L]
RewriteRule ^gift_gard\.html$ gift_gard\.php [L]
RewriteRule ^history_list\.html$ history_list\.php [L]
RewriteRule ^merchants_steps\.html$ merchants_steps\.php [L]
RewriteRule ^merchants_steps_site\.html$ merchants_steps_site\.php [L]
RewriteRule ^goods-([0-9]+)(.*)\.html$ goods\.php\?id=$1 [QSA,L]

# access any object by its numeric identifier
RewriteRule ^feed-c([0-9]+)\.xml$ feed\.php\?cat=$1 [L]
RewriteRule ^feed-b([0-9]+)\.xml$ feed\.php\?brand=$1 [L]
RewriteRule ^feed-type([^-]+)\.xml$ feed\.php\?type=$1 [L]
RewriteRule ^feed\.xml$ feed\.php [L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&ship=$6&self=$7&page=$8&sort=$9&order=$10 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&filter_attr=$4&ship=$5&self=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&ship=$4&self=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&self=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&filter_attr=$4&self=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&self=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&ship=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&filter_attr=$4&ship=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&ship=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&filter_attr=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3&filter_attr=$4 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&brand=$2&filter_attr=$3 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-max([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_max=$3 [QSA,L]
RewriteRule ^category-([0-9]+)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&filter_attr=$2 [QSA,L]
RewriteRule ^category-([0-9]+)-min([0-9]+)-max([0-9]+)(.*)\.html$ category\.php\?id=$1&price_min=$2&price_max=$3 [QSA,L]
RewriteRule ^category-([0-9]+)-max([0-9]+)(.*)\.html$ category\.php\?id=$1&price_max=$2 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)-([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3 [QSA,L]
RewriteRule ^category-([0-9]+)-b([^-]*)(.*)\.html$ category\.php\?id=$1&brand=$2 [QSA,L]
RewriteRule ^category-([0-9]+)(.*)\.html$ category\.php\?id=$1 [QSA,L]

RewriteRule ^presale-c([0-9]+)-status([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ presale\.php\?cat_id=$1&status=$2&act=$3 [QSA,L]
RewriteRule ^presale-status([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ presale\.php\?status=$1&act=$2 [QSA,L]
RewriteRule ^presale-c([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ presale\.php\?cat_id=$1&act=$2 [QSA,L]
RewriteRule ^presale-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ presale\.php\?id=$1&act=$2 [QSA,L]
RewriteRule ^presale-(([a-zA-Z])+([^-]*))(.*)\.html$ presale\.php\?act=$1 [QSA,L]
RewriteRule ^user-(([a-zA-Z])+([^-]*))\.html$ user\.php\?act=$1 [QSA,L]
RewriteRule ^categoryall-([0-9]+)(.*)\.html$ categoryall\.php\?id=$1 [QSA,L]
RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)(.*)\.html$ article_cat\.php\?id=$1&page=$2&keywords=$3 [QSA,L]
RewriteRule ^article_cat-([0-9]+)-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2 [QSA,L]
RewriteRule ^article_cat-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1 [QSA,L]
RewriteRule ^article-([0-9]+)(.*)\.html$ article\.php\?id=$1 [QSA,L]
RewriteRule ^merchants-([0-9]+)(.*)\.html$ merchants\.php\?id=$1 [QSA,L]
RewriteRule ^merchants_index-([0-9]+)(.*)\.html$ merchants_index\.php\?merchant_id=$1 [QSA,L]

RewriteRule ^brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&price_min=$3&price_max=$4&ship=$5&self=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&ship=$3&self=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&price_min=$3&price_max=$4&self=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&self=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&price_min=$3&price_max=$4&ship=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&ship=$3&page=$4&sort=$5&order=$6 [QSA,L]

RewriteRule ^brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&price_min=$3&price_max=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2&price_min=$3&price_max=$4&page=$5 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2&price_min=$3&price_max=$4 [QSA,L]

RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&price_min=$3&price_max=$4&ship=$5&self=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&price_min=$3&price_max=$4&self=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&price_min=$3&price_max=$4&ship=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&price_min=$3&price_max=$4&page=$5&sort=$6&order=$7 [QSA,L]

RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&ship=$3&self=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&self=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&ship=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&mbid=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^brand-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html brand\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^brand-([0-9]+)-mbid([0-9]+)(.*)\.html brand\.php\?id=$1&mbid=$2 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2 [QSA,L]
#RewriteRule ^brand-([0-9]+)(.*)\.html brand\.php\?id=$1 [QSA,L]
RewriteRule ^brand-([0-9]+)(.*)\.html brandn\.php\?id=$1 [QSA,L]

RewriteRule ^brandn-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)-(([a-zA-Z])+([^-]*))(.*)\.html brandn\.php\?id=$1&cat=$2&page=$3&sort=$4&order=$5&act=$6 [QSA,L]
RewriteRule ^brandn-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)-(([a-zA-Z])+([^-]*))(.*)\.html brandn\.php\?id=$1&page=$2&sort=$3&order=$4&act=$5 [QSA,L]
RewriteRule ^brandn-([0-9]+)-c([0-9]+)-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html brandn\.php\?id=$1&cat=$2&page=$3&act=$4 [QSA,L]
RewriteRule ^brandn-([0-9]+)-c([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html brandn\.php\?id=$1&cat=$2&act=$3 [QSA,L]
RewriteRule ^brandn-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html brandn\.php\?id=$1&cat=$2 [QSA,L]
RewriteRule ^brandn-([0-9]+)(.*)\.html brandn\.php\?id=$1 [QSA,L]

RewriteRule ^tag-(.*)\.html search\.php\?keywords=$1 [QSA,L]
RewriteRule ^snatch-([0-9]+)\.html$ snatch\.php\?id=$1 [QSA,L]
RewriteRule ^group_buy-([0-9]+)\.html$ group_buy\.php\?act=view&id=$1 [QSA,L]
RewriteRule ^auction-([0-9]+)\.html$ auction\.php\?act=view&id=$1 [QSA,L]

RewriteRule ^seckill-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ seckill\.php\?id=$1&act=$2 [QSA,L]
RewriteRule ^seckill-([0-9]+)\.html$ seckill\.php\?cat_id=$1 [QSA,L]

RewriteRule ^exchange-id([0-9]+)(.*)\.html$ exchange\.php\?id=$1&act=view [QSA,L]
RewriteRule ^exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ exchange\.php\?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ exchange\.php\?cat_id=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^exchange-([0-9]+)-([0-9]+)(.*)\.html$ exchange\.php\?cat_id=$1&page=$2 [QSA,L]
RewriteRule ^exchange-([0-9]+)(.*)\.html$ exchange\.php\?cat_id=$1 [QSA,L]

RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-keyword(.+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&keyword=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-keyword(.+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&keyword=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&price_min=$2&price_max=$3&filter_attr=$4&page=$5&sort=$6&order=$7 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&brand=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&brand=$3&page=$4 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2&brand=$3 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)-c([0-9]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1&id=$2 [QSA,L]
RewriteRule ^merchants_store-([0-9]+)(.*)\.html$ merchants_store\.php\?merchant_id=$1 [QSA,L]

RewriteRule ^merchants_store_shop-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ merchants_store_shop\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^merchants_store_shop-([0-9]+)(.*)\.html$ merchants_store_shop\.php\?id=$1 [QSA,L]

RewriteRule ^gift_gard-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ gift_gard\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^gift_gard-([0-9]+)-([0-9]+)(.*)\.html$ gift_gard\.php\?id=$1&page=$2 [QSA,L]
RewriteRule ^gift_gard-([0-9]+)(.*)\.html$ gift_gard\.php\?id=$1 [QSA,L]
RewriteRule ^wholesale_cat-([0-9]+)-status([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ wholesale_cat\.php\?id=$1&status=$2&act=$3 [QSA,L]
RewriteRule ^wholesale_cat-([0-9]+)-status([0-9]+)(.*)\.html$ wholesale_cat\.php\?id=$1&status=$2 [QSA,L]
RewriteRule ^wholesale_cat-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ wholesale_cat\.php\?id=$1&act=$2 [QSA,L]
RewriteRule ^wholesale_cat-([0-9]+)(.*)\.html$ wholesale_cat\.php\?id=$1 [QSA,L]
RewriteRule ^wholesale_purchase-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$ wholesale_purchase\.php\?id=$1&act=$2 [QSA,L]
RewriteRule ^wholesale_purchase-([0-9]+)(.*)\.html$ wholesale_purchase\.php\?id=$1 [QSA,L]
RewriteRule ^wholesale_goods-([0-9]+)(.*)\.html$ wholesale_goods\.php\?id=$1 [QSA,L]

 

分享大商创多用户系统dscmall 2.0在Nginx 1.26环境伪静态规则

内容为:

if (!-e $request_filename)
{
#dscmall 2.0 nginx伪静态规则

# direct one-word access
rewrite "^/index\.html$" /index.php last;
rewrite "^/index\.htm$" /index.php last;
rewrite "^/category$" /index.php last;

# single page
rewrite "^/brand\.html$" /brand.php last;
rewrite "^/brandn\.html$" /brandn.php last;
rewrite "^/group_buy\.html$" /group_buy.php last;
rewrite "^/seckill\.html$" /seckill.php last;
rewrite "^/auction\.html$" /auction.php last;
rewrite "^/package\.html$" /package.php last;
rewrite "^/activity\.html$" /activity.php last;
rewrite "^/snatch\.html$" /snatch.php last;
rewrite "^/exchange\.html$" /exchange.php last;
rewrite "^/store_street\.html$" /store_street.php last;
rewrite "^/presale\.html$" /presale.php last;
rewrite "^/categoryall\.html$" /categoryall.php last;
rewrite "^/merchants\.html$" /merchants.php last;
rewrite "^/merchants_index\.html$" /merchants_index.php last;
rewrite "^/message\.html$" /message.php last;
rewrite "^/wholesale\.html$" /wholesale.php last;
rewrite "^/gift_gard\.html$" /gift_gard.php last;
rewrite "^/history_list\.html$" /history_list.php last;
rewrite "^/merchants_steps\.html$" /merchants_steps.php last;
rewrite "^/merchants_steps_site\.html$" /merchants_steps_site.php last;

#access any object by its numeric identifier
rewrite "^/feed-c([0-9]+)\.xml$" /feed.php?cat=$1 last;
rewrite "^/feed-b([0-9]+)\.xml$" /feed.php?brand=$1 last;
rewrite "^/feed\.xml$" /feed.php last;
rewrite "^/feed-type([^-]+)\.xml$" /feed.php?type=$1 last;

rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&ship=$6&self=$7&page=$8&sort=$9&order=$10 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&filter_attr=$4&ship=$5&self=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&ship=$4&self=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&self=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&filter_attr=$4&self=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&self=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&ship=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&filter_attr=$4&ship=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&ship=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&filter_attr=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 last;
rewrite "^/category-([0-9]+)-b([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3&filter_attr=$4 last;
rewrite "^/category-([0-9]+)-b([^-]*)-min([0-9]+)-max([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4 last;
rewrite "^/category-([0-9]+)-b([^-]*)-attr([^-]*)(.*)\.html$" /category.php?id=$1&brand=$2&filter_attr=$3 last;
rewrite "^/category-([0-9]+)-b([^-]*)-max([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_max=$3 last;
rewrite "^/category-([0-9]+)-attr([^-]*)(.*)\.html$" /category.php?id=$1&filter_attr=$2 last;
rewrite "^/category-([0-9]+)-min([0-9]+)-max([0-9]+)(.*)\.html$" /category.php?id=$1&price_min=$2&price_max=$3 last;
rewrite "^/category-([0-9]+)-max([0-9]+)(.*)\.html$" /category.php?id=$1&price_max=$2 last;
rewrite "^/category-([0-9]+)-b([^-]*)-([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3 last;
rewrite "^/category-([0-9]+)-b([^-]*)(.*)\.html$" /category.php?id=$1&brand=$2 last;
rewrite "^/category-([0-9]+)(.*)\.html$" /category.php?id=$1 last;

rewrite "^/goods-([0-9]+)(.*)\.html" /goods.php?id=$1 last;
rewrite "^/user-(([a-zA-Z])+([^-]*))\.html$" /user.php?act=$1 last;
rewrite "^/categoryall-([0-9]+)(.*)\.html$" /categoryall.php?id=$1 last;

rewrite "^/presale-c([0-9]+)-status([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /presale.php\?cat_id=$1&status=$2&act=$3 last;
rewrite "^/presale-status([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /presale.php\?status=$1&act=$2 last;
rewrite "^/presale-c([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /presale.php\?cat_id=$1&act=$2 last;
rewrite "^/presale-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /presale.php\?id=$1&act=$2 last;
rewrite "^/presale-(([a-zA-Z])+([^-]*))(.*)\.html$" /presale.php\?act=$1 last;
rewrite "^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /article_cat.php\?id=$1&page=$2&sort=$3&order=$4 last;
rewrite "^/article_cat-([0-9]+)-([0-9]+)-(.+)(.*)\.html$" /article_cat.php\?id=$1&page=$2&keywords=$3 last;
rewrite "^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$" /article_cat.php\?id=$1&page=$2 last;
rewrite "^/article_cat-([0-9]+)(.*)\.html$" /article_cat.php\?id=$1 last;
rewrite "^/article-([0-9]+)(.*)\.html$" /article.php\?id=$1 last;
rewrite "^/merchants-([0-9]+)(.*)\.html$" /merchants.php\?id=$1 last;
rewrite "^/merchants_index-([0-9]+)(.*)\.html$" /merchants_index.php\?merchant_id=$1 last;

rewrite "^/brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&price_min=$3&price_max=$4&ship=$5&self=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&ship=$3&self=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&price_min=$3&price_max=$4&self=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&self=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&price_min=$3&price_max=$4&ship=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&ship=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&price_min=$3&price_max=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)(.*)\.html$" /brand.php?id=$1&cat=$2&price_min=$3&price_max=$4&page=$5 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)(.*)\.html$" /brand.php?id=$1&cat=$2&price_min=$3&price_max=$4 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&price_min=$3&price_max=$4&ship=$5&self=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&price_min=$3&price_max=$4&self=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&price_min=$3&price_max=$4&ship=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&price_min=$3&price_max=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-ship([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&ship=$3&self=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-self([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&self=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-ship([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&ship=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&mbid=$2&page=$3&sort=$4&order=$5 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 last;
rewrite "^/brand-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /brand.php?id=$1&page=$2&sort=$3&order=$4 last;
rewrite "^/brand-([0-9]+)-mbid([0-9]+)(.*)\.html$" /brand.php?id=$1&mbid=$2 last;
rewrite "^/brand-([0-9]+)-c([0-9]+)(.*)\.html$" /brand.php?id=$1&cat=$2 last;
#rewrite "^/brand-([0-9]+)(.*)\.html$" /brand.php?id=$1 last;
rewrite "^/brand-([0-9]+)(.*)\.html$" /brandn.php?act=cat&id=$1 last;
#rewrite "^/brandn-([0-9]+)(.*)\.html$" /brandn.php?id=$1 last;
rewrite "^/brandn-([0-9]+)(.*)\.html$" /brandn.php?act=cat&id=$1 last;
rewrite "^/brandn-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /brandn.php?id=$1&cat=$2&page=$3&sort=$4&order=$5&act=$6 last;
rewrite "^/brandn-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /brandn.php?id=$1&page=$2&sort=$3&order=$4&act=$5 last;
rewrite "^/brandn-([0-9]+)-c([0-9]+)-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /brandn.php?id=$1&cat=$2&page=$3&act=$4 last;
rewrite "^/brandn-([0-9]+)-c([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /brandn.php?id=$1&cat=$2&act=$3 last;
rewrite "^/brandn-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /brandn.php?id=$1&cat=$2 last;

rewrite "^/tag-(.*)\.html$" /search.php?keywords=$1 last;
rewrite "^/snatch-([0-9]+)\.html$" /snatch.php?id=$1 last;
rewrite "^/group_buy-([0-9]+)\.html$" /group_buy.php?act=view&id=$1 last;
rewrite "^/auction-([0-9]+)\.html$" /auction.php?act=view&id=$1 last;
rewrite "^/seckill-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /seckill.php?id=$1&act=$2 last;
rewrite "^/seckill-([0-9]+)\.html$" /seckill.php?cat_id=$1 last;
rewrite "^/exchange-id([0-9]+)(.*)\.html$" /exchange.php?id=$1&act=view last;
rewrite "^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;
rewrite "^/exchange-([0-9]+)-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2 last;
rewrite "^/exchange-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-keyword(.+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&keyword=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/merchants_store-([0-9]+)-keyword(.+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&keyword=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;
rewrite "^/merchants_store-([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&price_min=$2&price_max=$3&filter_attr=$4&page=$5&sort=$6&order=$7 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&brand=$3&page=$4&sort=$5&order=$6 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&price_min=$3&price_max=$4&filter_attr=$5 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&brand=$3&page=$4 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)-b([0-9]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2&brand=$3 last;
rewrite "^/merchants_store-([0-9]+)-c([0-9]+)(.*)\.html$" /merchants_store.php?merchant_id=$1&id=$2 last;
rewrite "^/merchants_store-([0-9]+)(.*)\.html$" /merchants_store.php?merchant_id=$1 last;
rewrite "^/merchants_store_shop-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /merchants_store_shop.php?id=$1&page=$2&sort=$3&order=$4 last;
rewrite "^/merchants_store_shop-([0-9]+)(.*)\.html$" /merchants_store_shop.php?id=$1 last;
rewrite "^/gift_gard-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /gift_gard.php?id=$1&page=$2&sort=$3&order=$4 last;
rewrite "^/gift_gard-([0-9]+)-([0-9]+)(.*)\.html$" /gift_gard.php?id=$1&page=$2 last;
rewrite "^/gift_gard-([0-9]+)(.*)\.html$" /gift_gard.php?id=$1 last;
rewrite "^/wholesale_cat-([0-9]+)-status([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /wholesale_cat.php?id=$1&status=$2&act=$3 last;
rewrite "^/wholesale_cat-([0-9]+)-status([0-9]+)(.*)\.html$" /wholesale_cat.php?id=$1&status=$2 last;
rewrite "^/wholesale_cat-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /wholesale_cat.php?id=$1&act=$2 last;
rewrite "^/wholesale_cat-([0-9]+)(.*)\.html$" /wholesale_cat.php?id=$1 last;
rewrite "^/wholesale_purchase-([0-9]+)-(([a-zA-Z])+([^-]*))(.*)\.html$" /wholesale_purchase.php?id=$1&act=$2 last;
rewrite "^/wholesale_purchase-([0-9]+)(.*)\.html$" /wholesale_purchase.php?id=$1 last;
rewrite "^/wholesale_goods-([0-9]+)(.*)\.html$" /wholesale_goods.php?id=$1 last;
}

 

转载请注明:百蔬君 » 【原创文章】大商创dscmall 2.0伪静态规则从Apache转nginx的方法

喜欢 (0)or分享 (0)

Warning: Attempt to read property "comment_author_email" on null in /www/wwwroot/baishujun.com/public_html/wp-content/themes/yusi1.0/comments.php on line 46
发表我的评论
取消评论

请证明您不是机器人(^v^):

表情